jsonc-simple-parser
Version:
A simple JSON parser that supports comments and optional trailing commas.
53 lines (52 loc) • 1.95 kB
JSON
{
"name": "jsonc-simple-parser",
"repository": "github:fabiospampinato/jsonc-simple-parser",
"description": "A simple JSON parser that supports comments and optional trailing commas.",
"version": "3.0.0",
"type": "module",
"main": "dist/index.js",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"benchmark": "tsex benchmark",
"benchmark:watch": "tsex benchmark --watch",
"clean": "tsex clean",
"compile": "tsex compile",
"compile:watch": "tsex compile --watch",
"test:test262:init": "git clone https://github.com/tc39/test262.git ./test/test262 && rm ./test/test262/test/built-ins/JSON/parse/name.js",
"test:test262:prelude": "{ echo 'var module = {}, exports = {};' && esbuild dist/index.js --bundle --format=cjs --minify --target=es2016 && echo 'JSON.parse=module.exports.default.parse;JSON.stringify=module.exports.default.stringify;' } > test/test262/prelude.js",
"test:test262:execute": "test262-harness -t 8 --prelude ./test/test262/prelude.js ./test/test262/test/built-ins/JSON/parse/*.js ./test/test262/test/built-ins/JSON/stringify/*.js",
"test:test262": "npm run test:test262:prelude && npm run test:test262:execute",
"test:lib": "fava '**/test/lib/*'",
"test:lib:watch": "fava --watch '**/test/lib/*'",
"test": "npm run test:test262 && npm run test:lib",
"prepublishOnly": "npm run clean && npm run compile && npm run test"
},
"keywords": [
"jsonc",
"json",
"comments",
"trailing commas",
"commas",
"parser",
"parse",
"stringify",
"tiny",
"simple"
],
"dependencies": {
"reghex": "^3.0.2"
},
"devDependencies": {
"fava": "^0.0.6",
"benchloop": "^1.3.2",
"esbuild": "^0.15.13",
"json5": "^2.2.1",
"jsonc-parser": "^3.2.0",
"lodash": "^4.17.21",
"test262-harness": "^7.5.2",
"type-fest": "^3.2.0",
"tsex": "^1.1.2",
"typescript": "^4.8.4"
}
}