1 | {
|
2 | "name": "filesize",
|
3 | "description": "JavaScript library to generate a human readable String describing the file size",
|
4 | "version": "10.0.5",
|
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": ">= 14.0.0"
|
26 | },
|
27 | "scripts": {
|
28 | "build": "mkdir -p dist && rm -rf dist/* && npm run rollup",
|
29 | "changelog": "auto-changelog -p",
|
30 | "coverage": "nyc npm run test",
|
31 | "lint": "eslint *.js src/*.js test/*.js",
|
32 | "mocha": "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 | },
|
38 | "devDependencies": {
|
39 | "auto-changelog": "^2.4.0",
|
40 | "eslint": "^8.24.0",
|
41 | "mocha": "^10.0.0",
|
42 | "rollup": "^2.79.1",
|
43 | "rollup-plugin-terser": "^7.0.2",
|
44 | "typescript": "^4.8.4"
|
45 | },
|
46 | "keywords": [
|
47 | "file",
|
48 | "filesize",
|
49 | "size",
|
50 | "readable",
|
51 | "file system",
|
52 | "bytes",
|
53 | "diff"
|
54 | ]
|
55 | }
|