-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
94 lines (94 loc) · 2.34 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "pretty-num",
"version": "0.6.0",
"description": "Lightweight module for formatting numbers to a human readable string",
"main": "dist/index.js",
"module": "src/index.js",
"types": "types/index.d.ts",
"exports": {
".": {
"module": "./src/index.js",
"import": "./src/index.js",
"default": "./dist/index.js",
"types": "./types/index.d.ts"
},
"./*": {
"module": "./src/*.js",
"import": "./src/*.js",
"types": "./types/*.d.ts"
}
},
"files": [
"/src/",
"/dist/",
"/types/"
],
"scripts": {
"build": "npm run bundle && npm run bundle:min",
"bundle": "rollup -c build/rollup.config.js",
"bundle:min": "rollup -c build/rollup.uglify.config.js",
"prepublishOnly": "npm run lint && npm run test && npm run tsc && npm run build",
"lint": "eslint --ext .js ./src ./test",
"lint:fix": "eslint --ext .js ./src ./test --fix",
"tsc": "tsc -p .",
"test": "jest",
"coverage": "jest --coverage",
"precommit": "echo 'Pre-commit checks...' && npm run lint"
},
"pre-commit": [
"precommit"
],
"repository": {
"type": "git",
"url": "git+https://github.com/shrpne/pretty-num.git"
},
"keywords": [
"format",
"pretty",
"big",
"number",
"human",
"readable",
"string",
"text",
"exponential",
"thousands",
"separator",
"significant",
"round",
"decimal",
"fixed",
"decrease",
"precision"
],
"author": "shrpne <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/shrpne/pretty-num/issues"
},
"dependencies": {
"from-exponential": "^1.1.1",
"thousands": "^1.0.1"
},
"devDependencies": {
"@babel/core": "^7.26.7",
"@babel/preset-env": "^7.26.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"babel-jest": "^28.1.3",
"coveralls": "^3.1.1",
"eslint": "^8.57.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-jsdoc": "^50.6.3",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"jest": "^28.1.3",
"pre-commit": "^1.2.2",
"rollup": "^2.79.2",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^5.7.3"
}
}