json-parse-context
Version:
Add the context of a json parse error to the error message with syntax highlighting if possible.
86 lines (85 loc) • 2.32 kB
JSON
{
"name": "json-parse-context",
"version": "1.0.1",
"description": "Add the context of a json parse error to the error message with syntax highlighting if possible.",
"main": "index.js",
"scripts": {
"test": "npm run test:lint && npm run test:unit && npm run test:lockfile && npm run test:git-history",
"test:git-history": "commitlint --from origin/main --to HEAD",
"test:lint": "eslint --ignore-path .gitignore --ext js,snap ./",
"test:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -o https: -c -i",
"test:unit": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/americanexpress/json-parse-context.git"
},
"keywords": [
"json",
"parse",
"terminal",
"friendly",
"syntax",
"highlighting"
],
"author": "Nick Oliver <Nickolas.Oliver@aexp.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/americanexpress/json-parse-context/issues"
},
"homepage": "https://github.com/americanexpress/json-parse-context#readme",
"dependencies": {
"cardinal": "^2.1.1",
"ansicolors": "^0.3.2"
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"amex-jest-preset": "^6.1.0",
"eslint": "^7.7.0",
"eslint-config-amex": "^13.1.0",
"husky": "^4.2.5",
"jest": "^23.6.0",
"lockfile-lint": "^4.3.7",
"semantic-release": "^17.1.1",
"strip-ansi": "^4.0.0"
},
"jest": {
"preset": "amex-jest-preset",
"coveragePathIgnorePatterns": [
"commitlint.config.js"
]
},
"husky": {
"hooks": {
"pre-commit": "npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"release": {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
}
}