polite-json
Version:
JSON.parse and stringify with better errors that respects formatting
87 lines (86 loc) • 1.97 kB
JSON
{
"name": "polite-json",
"version": "5.0.0",
"description": "JSON.parse and stringify with better errors that respects formatting",
"main": "./dist/commonjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"files": [
"dist"
],
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tshy",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "tap",
"snap": "tap",
"postsnap": "npm run format",
"format": "prettier --write . --loglevel warn",
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
},
"repository": {
"type": "git",
"url": "https://github.com/isaacs/polite-json"
},
"keywords": [
"JSON",
"parse",
"stringify",
"formatting",
"error",
"context"
],
"license": "MIT",
"devDependencies": {
"@types/node": "^18.11.9",
"@types/tap": "^15.0.7",
"c8": "^7.12.0",
"prettier": "^2.8.2",
"sync-content": "^1.0.2",
"tap": "^18.8.0",
"tshy": "^1.14.0",
"typedoc": "^0.23.21"
},
"tap": {
"typecheck": true
},
"prettier": {
"semi": false,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"types": "./dist/commonjs/index.d.ts",
"type": "module"
}