From f9159ea2d994e14180fb02ab562f0119513e67cf Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Fri, 3 Apr 2020 02:48:28 -0700 Subject: 2020/04/03, 02:47, V1.2.2 --- node_modules/json-parse-helpfulerror/README.md | 29 -------------------------- 1 file changed, 29 deletions(-) delete mode 100644 node_modules/json-parse-helpfulerror/README.md (limited to 'node_modules/json-parse-helpfulerror/README.md') diff --git a/node_modules/json-parse-helpfulerror/README.md b/node_modules/json-parse-helpfulerror/README.md deleted file mode 100644 index ffad935..0000000 --- a/node_modules/json-parse-helpfulerror/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# json-parse-helpfulerror - -A drop-in replacement for `JSON.parse` that uses - to provide more useful error messages in the -event of a parse error. - -# Example - -## Installation - -``` -npm i -S json-parse-helpfulerror -``` - -## Use - -```js -var jph = require('json-parse-helpfulerror'); - -var notJSON = "{'foo': 3}"; // keys must be double-quoted in JSON - -JSON.parse(notJSON); // throws unhelpful error - -jph.parse("{'foo': 3}") // throws more helpful error: "Unexpected token '\''..." -``` - -# License - -MIT \ No newline at end of file -- cgit v1.2.3