-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 2.38 KB
/
package.json
File metadata and controls
75 lines (75 loc) · 2.38 KB
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
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "11.0.13",
"homepage": "https://filesizejs.com",
"author": "Jason Mulligan <jason.mulligan@avoidwork.com>",
"repository": {
"type": "git",
"url": "git://github.com/avoidwork/filesize.js.git"
},
"bugs": {
"url": "https://github.com/avoidwork/filesize.js/issues"
},
"files": [
"dist/filesize.js",
"dist/filesize.cjs",
"types/filesize.d.ts"
],
"license": "BSD-3-Clause",
"source": "src/filesize.js",
"module": "dist/filesize.js",
"main": "dist/filesize.cjs",
"exports": {
"types": "./types/filesize.d.ts",
"import": "./dist/filesize.js",
"require": "./dist/filesize.cjs"
},
"type": "module",
"sourceType": "module",
"types": "types/filesize.d.ts",
"engines": {
"node": ">= 10.8.0"
},
"scripts": {
"build": "npm run rollup",
"build:watch": "rollup --config --watch",
"build:analyze": "npm run rollup && npm run analyze:size",
"analyze:size": "echo 'Bundle size analysis:' && du -h dist/* && echo 'Gzipped sizes:' && gzip -c dist/filesize.min.js | wc -c | awk '{print $1\" bytes (gzipped)\"}' && gzip -c dist/filesize.umd.min.js | wc -c | awk '{print $1\" bytes (umd gzipped)\"}'",
"changelog": "auto-changelog -p",
"lint": "eslint *.js src/*.js tests/**/*.js",
"lint:fix": "eslint --fix *.js src/*.js tests/**/*.js",
"fix": "npm run lint:fix",
"mocha": "c8 mocha tests/**/*.js",
"rollup": "rollup --config",
"test": "npm run lint && npm run mocha",
"test:watch": "npm run mocha -- --watch",
"prepack": "npm run build",
"prepare": "husky",
"dev": "npm run build:watch",
"benchmark": "node benchmarks/index.js",
"benchmark:basic": "node benchmarks/basic-performance.js",
"benchmark:options": "node benchmarks/options-benchmark.js",
"benchmark:stress": "node benchmarks/stress-test.js",
"benchmark:partial": "node benchmarks/partial-benchmark.js",
"benchmark:gc": "node --expose-gc benchmarks/index.js"
},
"devDependencies": {
"@rollup/plugin-terser": "^1.0.0",
"auto-changelog": "^2.5.0",
"c8": "^11.0.0",
"eslint": "^9.36.0",
"husky": "^9.1.7",
"mocha": "^11.7.2",
"rollup": "^4.52.0"
},
"keywords": [
"file",
"filesize",
"size",
"readable",
"file system",
"bytes",
"diff"
]
}