package.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "name": "filesize",
  3. "description": "JavaScript library to generate a human readable String describing the file size",
  4. "version": "7.0.0",
  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. "lib",
  16. "*.d.ts"
  17. ],
  18. "license": "BSD-3-Clause",
  19. "browser": "lib/filesize.min.js",
  20. "main": "lib/filesize.js",
  21. "module": "lib/filesize.esm.js",
  22. "types": "filesize.d.ts",
  23. "engines": {
  24. "node": ">= 0.4.0"
  25. },
  26. "scripts": {
  27. "build": "rollup -c",
  28. "watch": "rollup -c -w",
  29. "changelog": "auto-changelog -p",
  30. "test": "npm run build && npm run lint && npm run test:unit",
  31. "test:unit": "nodeunit test/*.js",
  32. "lint": "eslint test/*.js src/*.js",
  33. "types": "npx typescript src/filesize.js --declaration --allowJs --emitDeclarationOnly --outDir ./"
  34. },
  35. "devDependencies": {
  36. "@babel/core": "^7.14.6",
  37. "@babel/preset-env": "^7.14.7",
  38. "auto-changelog": "^2.3.0",
  39. "eslint": "^7.30.0",
  40. "nodeunit-x": "^0.14.0",
  41. "rollup": "^2.53.1",
  42. "rollup-plugin-babel": "^4.4.0",
  43. "rollup-plugin-terser": "^7.0.2"
  44. },
  45. "keywords": [
  46. "file",
  47. "filesize",
  48. "size",
  49. "readable",
  50. "file system",
  51. "bytes",
  52. "diff"
  53. ]
  54. }