UNPKG

3 kBJSONView Raw
1{
2 "name": "timeago.js",
3 "officialName": "timeago.js",
4 "version": "4.0.2",
5 "summary": "timeago.js is a simple library (less than 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'.",
6 "description": "timeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported.",
7 "main": "lib/index.js",
8 "module": "esm/index.js",
9 "files": [
10 "lib",
11 "esm",
12 "dist"
13 ],
14 "scripts": {
15 "lint": "eslint src/**/* __tests__/**/*",
16 "lint-staged": "lint-staged",
17 "size": "size-limit",
18 "test": "jest",
19 "ci": "npm run lint && npm run test && npm run size && lint-md .",
20 "build:umd": "rimraf ./dist && rollup -c && cp -rf dist/ gh-pages && npm run size",
21 "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
22 "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
23 "build": "npm run build:cjs && npm run build:esm && npm run build:umd",
24 "prepublishOnly": "npm run build"
25 },
26 "dependencies": {},
27 "devDependencies": {
28 "@commitlint/cli": "^8.2.0",
29 "@types/jest": "^24.0.18",
30 "@typescript-eslint/eslint-plugin": "^2.3.1",
31 "@typescript-eslint/parser": "^2.3.1",
32 "cross-env": "^5.1.3",
33 "eslint": "^6.4.0",
34 "eslint-config-prettier": "^6.3.0",
35 "husky": "^3.0.5",
36 "jest": "^24.9.0",
37 "jest-date-mock": "^1.0.5",
38 "jest-electron": "^0.1.7",
39 "jest-expect": "^0.0.1",
40 "lint-md-cli": "^0.1.0",
41 "lint-staged": "^9.3.0",
42 "prettier": "^1.18.2",
43 "rimraf": "^3.0.0",
44 "rollup": "^1.23.1",
45 "rollup-plugin-node-resolve": "^5.2.0",
46 "rollup-plugin-typescript": "^1.0.1",
47 "rollup-plugin-uglify": "^6.0.3",
48 "size-limit": "^0.18.0",
49 "ts-jest": "^24.1.0",
50 "typescript": "^3.6.3"
51 },
52 "size-limit": [
53 {
54 "limit": "1 KB",
55 "path": "dist/timeago.min.js"
56 },
57 {
58 "limit": "10 KB",
59 "path": "dist/timeago.full.min.js"
60 }
61 ],
62 "jest": {
63 "preset": "ts-jest",
64 "runner": "jest-electron/runner",
65 "testEnvironment": "jest-electron/environment",
66 "setupFilesAfterEnv": [
67 "jest-expect"
68 ],
69 "testRegex": "(/__tests__/.*(test|spec))\\.ts$",
70 "testURL": "https://timeago.org",
71 "collectCoverage": true,
72 "collectCoverageFrom": [
73 "src/**/*.ts",
74 "!**/node_modules/**"
75 ]
76 },
77 "lint-staged": {
78 "*.{ts,tsx}": [
79 "eslint --fix",
80 "prettier --write",
81 "git add"
82 ]
83 },
84 "husky": {
85 "hooks": {
86 "pre-commit": "npm run lint-staged",
87 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
88 }
89 },
90 "author": {
91 "name": "hustcc",
92 "url": "https://timeago.org"
93 },
94 "license": "MIT",
95 "keywords": [
96 "timeago",
97 "datetime",
98 "*** time ago",
99 "date",
100 "javascript timeago"
101 ],
102 "repository": {
103 "type": "git",
104 "url": "https://github.com/hustcc/timeago.js"
105 },
106 "bugs": {
107 "url": "https://github.com/hustcc/timeago.js/issues"
108 }
109}