package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "flatted",
  3. "version": "3.2.7",
  4. "description": "A super light and fast circular JSON parser.",
  5. "unpkg": "min.js",
  6. "types": "types.d.ts",
  7. "main": "./cjs/index.js",
  8. "scripts": {
  9. "build": "npm run cjs && npm run rollup:esm && npm run rollup:es && npm run rollup:babel && npm run min && npm run test && npm run size",
  10. "cjs": "ascjs esm cjs",
  11. "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
  12. "rollup:esm": "rollup --config rollup/esm.config.js",
  13. "rollup:babel": "rollup --config rollup/babel.config.js && sed -i.bck 's/^var /self./' index.js && rm -rf index.js.bck",
  14. "min": "terser index.js -c -m -o min.js",
  15. "size": "cat index.js | wc -c;cat min.js | wc -c;gzip -c9 min.js | wc -c;cat min.js | brotli | wc -c; cat es.js | brotli | wc -c; cat esm.js | brotli | wc -c",
  16. "test": "c8 node test/index.js",
  17. "test:php": "php php/test.php",
  18. "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/WebReflection/flatted.git"
  23. },
  24. "keywords": [
  25. "circular",
  26. "JSON",
  27. "fast",
  28. "parser",
  29. "minimal"
  30. ],
  31. "author": "Andrea Giammarchi",
  32. "license": "ISC",
  33. "bugs": {
  34. "url": "https://github.com/WebReflection/flatted/issues"
  35. },
  36. "homepage": "https://github.com/WebReflection/flatted#readme",
  37. "devDependencies": {
  38. "@babel/core": "^7.18.10",
  39. "@babel/preset-env": "^7.18.10",
  40. "@ungap/structured-clone": "^1.0.1",
  41. "ascjs": "^5.0.1",
  42. "c8": "^7.12.0",
  43. "circular-json": "^0.5.9",
  44. "circular-json-es6": "^2.0.2",
  45. "jsan": "^3.1.14",
  46. "rollup": "^2.78.1",
  47. "rollup-plugin-babel": "^4.4.0",
  48. "rollup-plugin-node-resolve": "^5.2.0",
  49. "rollup-plugin-terser": "^7.0.2",
  50. "terser": "^5.14.2"
  51. },
  52. "module": "./esm/index.js",
  53. "type": "module",
  54. "exports": {
  55. ".": {
  56. "types": "./types.d.ts",
  57. "import": "./esm/index.js",
  58. "default": "./cjs/index.js"
  59. },
  60. "./esm": "./esm.js",
  61. "./package.json": "./package.json"
  62. }
  63. }