1 | {
|
---|
2 | "name": "flatted",
|
---|
3 | "version": "3.3.1",
|
---|
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 | "keywords": [
|
---|
26 | "circular",
|
---|
27 | "JSON",
|
---|
28 | "fast",
|
---|
29 | "parser",
|
---|
30 | "minimal"
|
---|
31 | ],
|
---|
32 | "author": "Andrea Giammarchi",
|
---|
33 | "license": "ISC",
|
---|
34 | "bugs": {
|
---|
35 | "url": "https://github.com/WebReflection/flatted/issues"
|
---|
36 | },
|
---|
37 | "homepage": "https://github.com/WebReflection/flatted#readme",
|
---|
38 | "devDependencies": {
|
---|
39 | "@babel/core": "^7.23.9",
|
---|
40 | "@babel/preset-env": "^7.23.9",
|
---|
41 | "@rollup/plugin-babel": "^6.0.4",
|
---|
42 | "@rollup/plugin-terser": "^0.4.4",
|
---|
43 | "@ungap/structured-clone": "^1.2.0",
|
---|
44 | "ascjs": "^6.0.3",
|
---|
45 | "c8": "^9.1.0",
|
---|
46 | "circular-json": "^0.5.9",
|
---|
47 | "circular-json-es6": "^2.0.2",
|
---|
48 | "jsan": "^3.1.14",
|
---|
49 | "rollup": "^4.12.0",
|
---|
50 | "terser": "^5.27.2",
|
---|
51 | "typescript": "^5.3.3"
|
---|
52 | },
|
---|
53 | "module": "./esm/index.js",
|
---|
54 | "type": "module",
|
---|
55 | "exports": {
|
---|
56 | ".": {
|
---|
57 | "types": "./types/index.d.ts",
|
---|
58 | "import": "./esm/index.js",
|
---|
59 | "default": "./cjs/index.js"
|
---|
60 | },
|
---|
61 | "./esm": "./esm.js",
|
---|
62 | "./package.json": "./package.json"
|
---|
63 | },
|
---|
64 | "types": "./types/index.d.ts"
|
---|
65 | }
|
---|