summaryrefslogtreecommitdiff
path: root/node_modules/filesize/package.json
blob: 7feb89b9c3083e3b514a05d1ae06acc33859198a (plain)
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
{
  "name": "filesize",
  "description": "JavaScript library to generate a human readable String describing the file size",
  "version": "10.1.6",
  "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.cjs",
    "dist/filesize.esm.js",
    "types/filesize.d.ts"
  ],
  "license": "BSD-3-Clause",
  "main": "dist/filesize.cjs",
  "module": "dist/filesize.esm.js",
  "types": "types/filesize.d.ts",
  "type": "module",
  "sourceType": "module",
  "engines": {
    "node": ">= 10.4.0"
  },
  "scripts": {
    "build": "npm run rollup",
    "changelog": "auto-changelog -p",
    "coverage": "nyc npm run test",
    "lint": "eslint *.js src/*.js test/*.js",
    "fix": "eslint --fix *.js src/*.js test/*.js",
    "mocha": "nyc mocha test/*.js",
    "rollup": "rollup --config",
    "test": "npm run lint && npm run mocha",
    "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",
    "types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types",
    "prepare": "husky"
  },
  "devDependencies": {
    "@rollup/plugin-terser": "^0.4.4",
    "auto-changelog": "^2.4.0",
    "eslint": "^9.6.0",
    "husky": "^9.0.11",
    "mocha": "^10.6.0",
    "nyc": "^17.0.0",
    "rollup": "^4.18.1",
    "typescript": "^5.5.3"
  },
  "keywords": [
    "file",
    "filesize",
    "size",
    "readable",
    "file system",
    "bytes",
    "diff"
  ]
}