package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "flatted",
  3. "version": "3.1.1",
  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. "coveralls": "nyc report --reporter=text-lcov | coveralls",
  16. "test": "nyc node test/index.js"
  17. },
  18. "repository": {
  19. "type": "git",
  20. "url": "git+https://github.com/WebReflection/flatted.git"
  21. },
  22. "keywords": [
  23. "circular",
  24. "JSON",
  25. "fast",
  26. "parser",
  27. "minimal"
  28. ],
  29. "author": "Andrea Giammarchi",
  30. "license": "ISC",
  31. "bugs": {
  32. "url": "https://github.com/WebReflection/flatted/issues"
  33. },
  34. "homepage": "https://github.com/WebReflection/flatted#readme",
  35. "devDependencies": {
  36. "@babel/core": "^7.11.6",
  37. "@babel/preset-env": "^7.11.5",
  38. "ascjs": "^4.0.1",
  39. "circular-json": "^0.5.9",
  40. "circular-json-es6": "^2.0.2",
  41. "coveralls": "^3.1.0",
  42. "drop-babel-typeof": "^1.0.3",
  43. "jsan": "^3.1.13",
  44. "nyc": "^15.1.0",
  45. "rollup": "^2.26.11",
  46. "rollup-plugin-babel": "^4.4.0",
  47. "rollup-plugin-node-resolve": "^5.2.0",
  48. "rollup-plugin-terser": "^7.0.2",
  49. "terser": "^5.3.0"
  50. },
  51. "module": "./esm/index.js",
  52. "type": "module",
  53. "exports": {
  54. "import": "./esm/index.js",
  55. "default": "./cjs/index.js"
  56. }
  57. }