- Notifications
You must be signed in to change notification settings - Fork13
zkat/json-parse-better-errors
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
json-parse-better-errors
is a Node.js library forgetting nicer errors out ofJSON.parse()
, including context and position of the parse errors.
$ npm install --save json-parse-better-errors
constparseJson=require('json-parse-better-errors')parseJson('"foo"')parseJson('garbage')// more useful error message
- Like JSON.parse, but the errors are better.
The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! TheContributor 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 followCode of Conduct, and just generally be excellent to each other.
Please refer to theChangelog for project history details, too.
Happy hacking!
Works just likeJSON.parse
, but will include a bit more information when anerror happens.
About
get better errors
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.