Gathering detailed insights and metrics for json-parse-better-errors
Gathering detailed insights and metrics for json-parse-better-errors
Gathering detailed insights and metrics for json-parse-better-errors
Gathering detailed insights and metrics for json-parse-better-errors
npm install json-parse-better-errors
Typescript
Module System
Node Version
NPM Version
99.7
Supply Chain
75.9
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
4,636,248,998
Last Day
1,047,412
Last Week
16,951,995
Last Month
74,169,034
Last Year
779,059,891
MIT License
69 Stars
8 Commits
13 Forks
2 Watchers
4 Branches
2 Contributors
Updated on May 30, 2025
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
json-parse-better-errors@1.0.2
Size
2.98 kB
NPM Version
6.0.0-next.0
Node Version
9.8.0
Published on
Mar 30, 2018
Cumulative downloads
Total Downloads
Last Day
-16.6%
1,047,412
Compared to previous day
Last Week
-9.7%
16,951,995
Compared to previous week
Last Month
5%
74,169,034
Compared to previous month
Last Year
0.8%
779,059,891
Compared to previous year
6
json-parse-better-errors
is a Node.js library for
getting nicer errors out of JSON.parse()
, including context and position of the parse errors.
$ npm install --save json-parse-better-errors
1const parseJson = require('json-parse-better-errors') 2 3parseJson('"foo"') 4parseJson('garbage') // more useful error message
The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.
All participants and maintainers in this project are expected to follow Code of Conduct, and just generally be excellent to each other.
Please refer to the Changelog for project history details, too.
Happy hacking!
> parse(txt, ?reviver, ?context=20)
Works just like JSON.parse
, but will include a bit more information when an
error happens.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morejson-parse-even-better-errors
JSON.parse with context information on error
@types/json-parse-better-errors
TypeScript definitions for json-parse-better-errors
polite-json
JSON.parse and stringify with better errors that respects formatting
better-error-message-for-json-parse
Parse JSON and receive better error message in case of failure