UNPKG

1.97 kBJSONView Raw
1{
2 "name": "filesize",
3 "description": "JavaScript library to generate a human readable String describing the file size",
4 "version": "10.1.1",
5 "homepage": "https://filesizejs.com",
6 "author": "Jason Mulligan <jason.mulligan@avoidwork.com>",
7 "repository": {
8 "type": "git",
9 "url": "git://github.com/avoidwork/filesize.js.git"
10 },
11 "bugs": {
12 "url": "https://github.com/avoidwork/filesize.js/issues"
13 },
14 "files": [
15 "dist",
16 "types"
17 ],
18 "license": "BSD-3-Clause",
19 "main": "dist/filesize.cjs",
20 "module": "dist/filesize.esm.js",
21 "types": "types/filesize.d.ts",
22 "type": "module",
23 "sourceType": "module",
24 "engines": {
25 "node": ">= 10.4.0"
26 },
27 "scripts": {
28 "build": "npm run rollup",
29 "changelog": "auto-changelog -p",
30 "coverage": "nyc npm run test",
31 "lint": "eslint *.js src/*.js test/*.js",
32 "mocha": "nyc mocha test/*.js",
33 "rollup": "rollup --config",
34 "test": "npm run lint && npm run mocha",
35 "test-webpack": "mkdir -p test/webpack && rm -rf test/webpack/* && git clone git@github.com:rabelais88/typescript-webpack.git test/webpack && echo \"import { filesize } from 'filesize';console.log(filesize(1234));\" >> test/webpack/src/index.ts && cd test/webpack && npm install && mkdir -p node_modules/filesize/dist && cp ../../package.json node_modules/filesize/ && cp ../../dist/* node_modules/filesize/dist/ && npm run build",
36 "types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types",
37 "prepare": "husky install"
38 },
39 "devDependencies": {
40 "@rollup/plugin-terser": "^0.4.0",
41 "auto-changelog": "^2.4.0",
42 "eslint": "^8.37.0",
43 "husky": "^8.0.3",
44 "mocha": "^10.2.0",
45 "nyc": "^15.1.0",
46 "rollup": "^3.20.2",
47 "typescript": "^5.0.2"
48 },
49 "keywords": [
50 "file",
51 "filesize",
52 "size",
53 "readable",
54 "file system",
55 "bytes",
56 "diff"
57 ]
58}