-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
46 lines (46 loc) · 1.71 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"name": "json-parse-helpfulerror",
"version": "1.0.3",
"description": "A drop-in replacement for JSON.parse that uses `jju` to give helpful errors",
"main": "index.js",
"scripts": {
"test": "lab -c",
"lint": "jslint --edition=latest --terse *.js"
},
"repository": {
"type": "git",
"url": "https://github.com/smikes/json-parse-helpfulerror.git"
},
"keywords": [
"json",
"parse",
"line",
"doublequote",
"error"
],
"author": {
"name": "Sam Mikes",
"email": "smikes@cubane.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/smikes/json-parse-helpfulerror/issues"
},
"homepage": "https://github.com/smikes/json-parse-helpfulerror",
"devDependencies": {
"code": "^1.2.1",
"jslint": "^0.7.1",
"lab": "^5.1.1"
},
"dependencies": {
"jju": "^1.1.0"
},
"readme": "# json-parse-helpfulerror\n\nA drop-in replacement for `JSON.parse` that uses\n<https://npmjs.org/jju> to provide more useful error messages in the\nevent of a parse error.\n\n# Example\n\n## Installation\n\n```\nnpm i -S json-parse-helpfulerror\n```\n\n## Use\n\n```js\nvar jph = require('json-parse-helpfulerror');\n\nvar notJSON = \"{'foo': 3}\"; // keys must be double-quoted in JSON\n\nJSON.parse(notJSON); // throws unhelpful error\n\njph.parse(\"{'foo': 3}\") // throws more helpful error: \"Unexpected token '\\''...\"\n```\n\n# License\n\nMIT",
"readmeFilename": "README.md",
"_id": "json-parse-helpfulerror@1.0.3",
"dist": {
"shasum": "c4818de2125765d109706511b010c50a7f7de46c"
},
"_from": "json-parse-helpfulerror@^1.0.2",
"_resolved": "https://registry.npmjs.org/json-parse-helpfulerror/-/json-parse-helpfulerror-1.0.3.tgz"
}