package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "flatted",
  3. "version": "3.2.5",
  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: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:babel": "rollup --config rollup/babel.config.js && sed -i.bck 's/^var /self./' index.js && rm -rf index.js.bck && drop-babel-typeof index.js",
  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",
  15. "test": "c8 node test/index.js",
  16. "test:php": "php php/test.php",
  17. "coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "git+https://github.com/WebReflection/flatted.git"
  22. },
  23. "keywords": [
  24. "circular",
  25. "JSON",
  26. "fast",
  27. "parser",
  28. "minimal"
  29. ],
  30. "author": "Andrea Giammarchi",
  31. "license": "ISC",
  32. "bugs": {
  33. "url": "https://github.com/WebReflection/flatted/issues"
  34. },
  35. "homepage": "https://github.com/WebReflection/flatted#readme",
  36. "devDependencies": {
  37. "@babel/core": "^7.16.0",
  38. "@babel/preset-env": "^7.16.0",
  39. "@ungap/structured-clone": "^0.3.4",
  40. "ascjs": "^5.0.1",
  41. "c8": "^7.10.0",
  42. "circular-json": "^0.5.9",
  43. "circular-json-es6": "^2.0.2",
  44. "drop-babel-typeof": "^1.0.3",
  45. "jsan": "^3.1.13",
  46. "rollup": "^2.59.0",
  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.9.0"
  51. },
  52. "module": "./esm/index.js",
  53. "type": "module",
  54. "exports": {
  55. ".": {
  56. "import": "./esm/index.js",
  57. "default": "./cjs/index.js"
  58. },
  59. "./package.json": "./package.json"
  60. }
  61. }