| 1 | {
|
|---|
| 2 | "name": "flatted",
|
|---|
| 3 | "version": "3.4.2",
|
|---|
| 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 | "golang/pkg/flatted/flatted.go",
|
|---|
| 37 | "types/"
|
|---|
| 38 | ],
|
|---|
| 39 | "keywords": [
|
|---|
| 40 | "circular",
|
|---|
| 41 | "JSON",
|
|---|
| 42 | "fast",
|
|---|
| 43 | "parser",
|
|---|
| 44 | "minimal"
|
|---|
| 45 | ],
|
|---|
| 46 | "author": "Andrea Giammarchi",
|
|---|
| 47 | "license": "ISC",
|
|---|
| 48 | "bugs": {
|
|---|
| 49 | "url": "https://github.com/WebReflection/flatted/issues"
|
|---|
| 50 | },
|
|---|
| 51 | "homepage": "https://github.com/WebReflection/flatted#readme",
|
|---|
| 52 | "devDependencies": {
|
|---|
| 53 | "@babel/core": "^7.29.0",
|
|---|
| 54 | "@babel/preset-env": "^7.29.0",
|
|---|
| 55 | "@rollup/plugin-babel": "^7.0.0",
|
|---|
| 56 | "@rollup/plugin-terser": "^1.0.0",
|
|---|
| 57 | "@ungap/structured-clone": "^1.3.0",
|
|---|
| 58 | "ascjs": "^6.0.3",
|
|---|
| 59 | "c8": "^11.0.0",
|
|---|
| 60 | "circular-json": "^0.5.9",
|
|---|
| 61 | "circular-json-es6": "^2.0.2",
|
|---|
| 62 | "flatted-view": "^0.1.1",
|
|---|
| 63 | "jsan": "^3.1.14",
|
|---|
| 64 | "rollup": "^4.59.0",
|
|---|
| 65 | "terser": "^5.46.0",
|
|---|
| 66 | "typescript": "^5.9.3"
|
|---|
| 67 | },
|
|---|
| 68 | "module": "./esm/index.js",
|
|---|
| 69 | "type": "module",
|
|---|
| 70 | "exports": {
|
|---|
| 71 | ".": {
|
|---|
| 72 | "types": "./types/index.d.ts",
|
|---|
| 73 | "import": "./esm/index.js",
|
|---|
| 74 | "default": "./cjs/index.js"
|
|---|
| 75 | },
|
|---|
| 76 | "./esm": "./esm.js",
|
|---|
| 77 | "./package.json": "./package.json"
|
|---|
| 78 | },
|
|---|
| 79 | "types": "./types/index.d.ts"
|
|---|
| 80 | }
|
|---|