package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "flatted",
  3. "version": "3.3.3",
  4. "description": "A super light and fast circular JSON parser.",
  5. "unpkg": "min.js",
  6. "main": "./cjs/index.js",
  7. "scripts": {
  8. "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",
  9. "cjs": "ascjs esm cjs",
  10. "rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
  11. "rollup:esm": "rollup --config rollup/esm.config.js",
  12. "rollup:babel": "rollup --config rollup/babel.config.js && sed -i.bck 's/^var /self./' index.js && rm -rf index.js.bck",
  13. "min": "terser index.js -c -m -o min.js",
  14. "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",
  15. "test": "c8 node test/index.js",
  16. "test:php": "php php/test.php",
  17. "test:py": "python python/test.py",
  18. "ts": "tsc -p .",
  19. "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "git+https://github.com/WebReflection/flatted.git"
  24. },
  25. "files": [
  26. "LICENSE",
  27. "README.md",
  28. "cjs/",
  29. "es.js",
  30. "esm.js",
  31. "esm/",
  32. "index.js",
  33. "min.js",
  34. "php/flatted.php",
  35. "python/flatted.py",
  36. "types/"
  37. ],
  38. "keywords": [
  39. "circular",
  40. "JSON",
  41. "fast",
  42. "parser",
  43. "minimal"
  44. ],
  45. "author": "Andrea Giammarchi",
  46. "license": "ISC",
  47. "bugs": {
  48. "url": "https://github.com/WebReflection/flatted/issues"
  49. },
  50. "homepage": "https://github.com/WebReflection/flatted#readme",
  51. "devDependencies": {
  52. "@babel/core": "^7.26.9",
  53. "@babel/preset-env": "^7.26.9",
  54. "@rollup/plugin-babel": "^6.0.4",
  55. "@rollup/plugin-terser": "^0.4.4",
  56. "@ungap/structured-clone": "^1.3.0",
  57. "ascjs": "^6.0.3",
  58. "c8": "^10.1.3",
  59. "circular-json": "^0.5.9",
  60. "circular-json-es6": "^2.0.2",
  61. "jsan": "^3.1.14",
  62. "rollup": "^4.34.8",
  63. "terser": "^5.39.0",
  64. "typescript": "^5.7.3"
  65. },
  66. "module": "./esm/index.js",
  67. "type": "module",
  68. "exports": {
  69. ".": {
  70. "types": "./types/index.d.ts",
  71. "import": "./esm/index.js",
  72. "default": "./cjs/index.js"
  73. },
  74. "./esm": "./esm.js",
  75. "./package.json": "./package.json"
  76. },
  77. "types": "./types/index.d.ts"
  78. }