{"_id":"parse-json","_rev":"3762899","name":"parse-json","description":"Parse JSON with more helpful errors","dist-tags":{"latest":"8.3.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-05-06T07:45:12.000Z","created":"2015-07-28T19:05:09.989Z","8.3.0":"2025-04-09T09:02:03.317Z","8.2.0":"2025-03-21T07:57:48.662Z","8.1.0":"2023-11-22T15:16:39.592Z","8.0.1":"2023-11-09T10:58:54.795Z","8.0.0":"2023-11-02T19:12:14.219Z","7.1.1":"2023-10-27T18:32:13.983Z","7.1.0":"2023-09-01T06:40:05.405Z","7.0.0":"2023-04-07T03:00:21.988Z","6.0.2":"2021-11-21T06:20:19.136Z","6.0.1":"2021-11-15T02:48:09.224Z","6.0.0":"2021-11-04T07:31:33.913Z","5.2.0":"2021-01-18T11:15:13.459Z","5.1.0":"2020-08-22T20:43:07.895Z","5.0.1":"2020-07-24T05:18:36.819Z","5.0.0":"2019-07-02T18:02:21.255Z","4.0.0":"2017-11-04T07:53:50.125Z","3.0.0":"2017-08-17T10:11:16.080Z","2.2.0":"2015-08-31T16:36:30.005Z","2.1.0":"2015-08-26T15:15:54.581Z","2.0.0":"2015-08-25T14:14:38.170Z","1.0.1":"2015-08-03T10:29:22.749Z","1.0.0":"2015-07-28T19:05:09.989Z"},"users":{"nexdrew":true,"huhgawz":true,"mightyjongyo":true,"rocket0191":true,"drveresh":true,"shuoshubao":true,"kakaman":true,"huuduy":true,"sunshine1988":true,"pftom":true,"zhenguo.zhao":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"versions":{"8.3.0":{"name":"parse-json","version":"8.3.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && c8 ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.26.2","index-to-position":"^1.1.0","type-fest":"^4.39.1"},"devDependencies":{"ava":"^6.2.0","c8":"^10.1.3","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.31.2","xo":"^0.60.0"},"_id":"parse-json@8.3.0","gitHead":"6fee59751db59a539fdf53537101a1d7c6378a65","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"shasum":"88a195a2157025139a2317a4f2f9252b61304ed5","size":3456,"noattachment":false,"key":"/parse-json/-/parse-json-8.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-8.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parse-json_8.3.0_1744189323129_0.7474471720361489"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-09T09:02:03.317Z","publish_time":1744189323317,"_source_registry_name":"default","_cnpm_publish_time":1744189323317},"8.2.0":{"name":"parse-json","version":"8.2.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && c8 ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.26.2","index-to-position":"^1.0.0","type-fest":"^4.37.0"},"devDependencies":{"ava":"^6.2.0","c8":"^10.1.3","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.31.2","xo":"^0.60.0"},"_id":"parse-json@8.2.0","gitHead":"6a7bae72889ff172cb44d58223097abb67e9f8c2","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"shasum":"794a590dcf54588ec2282ce6065f15121fa348a0","size":3534,"noattachment":false,"key":"/parse-json/-/parse-json-8.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-8.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parse-json_8.2.0_1742543868476_0.09362295905957718"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-21T07:57:48.662Z","publish_time":1742543868662,"_source_registry_name":"default","_cnpm_publish_time":1742543868662},"8.1.0":{"name":"parse-json","version":"8.1.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.22.13","index-to-position":"^0.1.2","type-fest":"^4.7.1"},"devDependencies":{"ava":"^5.3.1","nyc":"^15.1.0","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"5ad65169677db8f164a32dcd08a19bc5ae8426e3","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@8.1.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"91cdc7728004e955af9cb734de5684733b24a717","size":3280,"noattachment":false,"key":"/parse-json/-/parse-json-8.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-8.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_8.1.0_1700666199422_0.8829135113944024"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-22T15:16:39.592Z","publish_time":1700666199592,"_source_registry_name":"default","_cnpm_publish_time":1700666199592},"8.0.1":{"name":"parse-json","version":"8.0.1","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.22.13","index-to-position":"^0.1.1","json-parse-even-better-errors":"^3.0.0","type-fest":"^4.7.1"},"devDependencies":{"ava":"^5.3.1","nyc":"^15.1.0","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"1927b6d08ead7bd5ff3912842d30bb2ca96aaf72","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@8.0.1","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"shasum":"13920ceb04b9dc126268fc3abea89e4c7c6b0f86","size":3138,"noattachment":false,"key":"/parse-json/-/parse-json-8.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-8.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_8.0.1_1699527534615_0.31001972047475546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-09T10:58:54.795Z","publish_time":1699527534795,"_source_registry_name":"default","_cnpm_publish_time":1699527534795},"8.0.0":{"name":"parse-json","version":"8.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=18"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.22.13","index-to-position":"^0.1.0","json-parse-even-better-errors":"^3.0.0","type-fest":"^4.6.0"},"devDependencies":{"ava":"^5.3.1","nyc":"^15.1.0","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"7230975ba5ad27ad9fa40a2fa93f95786acafc8e","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@8.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"ad386a5990556791736cab443042ca234cdfbba9","size":3018,"noattachment":false,"key":"/parse-json/-/parse-json-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_8.0.0_1698952333962_0.2514557675845246"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-02T19:12:14.219Z","publish_time":1698952334219,"_source_registry_name":"default","_cnpm_publish_time":1698952334219},"7.1.1":{"name":"parse-json","version":"7.1.1","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.21.4","error-ex":"^1.3.2","json-parse-even-better-errors":"^3.0.0","lines-and-columns":"^2.0.3","type-fest":"^3.8.0"},"devDependencies":{"ava":"^5.2.0","nyc":"^15.1.0","outdent":"^0.8.0","strip-ansi":"^7.1.0","tsd":"^0.28.1","xo":"^0.54.0"},"types":"./index.d.ts","gitHead":"c26d16e382872ce567c2b8c52bfd82e392b64689","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@7.1.1","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"shasum":"68f7e6f0edf88c54ab14c00eb700b753b14e2120","size":2892,"noattachment":false,"key":"/parse-json/-/parse-json-7.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-7.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_7.1.1_1698431533794_0.27783702697893164"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-27T18:32:13.983Z","publish_time":1698431533983,"_source_registry_name":"default","_cnpm_publish_time":1698431533983},"7.1.0":{"name":"parse-json","version":"7.1.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.21.4","error-ex":"^1.3.2","json-parse-even-better-errors":"^3.0.0","lines-and-columns":"^2.0.3","type-fest":"^3.8.0"},"devDependencies":{"ava":"^5.2.0","nyc":"^15.1.0","tsd":"^0.28.1","xo":"^0.54.0"},"types":"./index.d.ts","gitHead":"da94669530f225526461018517563c12fd7633e0","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@7.1.0","_nodeVersion":"18.16.1","_npmVersion":"9.2.0","dist":{"shasum":"4cffd0ee00ffa597b995fd70a9811993c4f95023","size":2793,"noattachment":false,"key":"/parse-json/-/parse-json-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_7.1.0_1693550405228_0.7108466533759863"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-01T06:40:05.405Z","publish_time":1693550405405,"_source_registry_name":"default","_cnpm_publish_time":1693550405405},"7.0.0":{"name":"parse-json","version":"7.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.21.4","error-ex":"^1.3.2","json-parse-even-better-errors":"^3.0.0","lines-and-columns":"^2.0.3","type-fest":"^3.8.0"},"devDependencies":{"ava":"^5.2.0","nyc":"^15.1.0","tsd":"^0.28.1","xo":"^0.54.0"},"types":"./index.d.ts","gitHead":"258f8312b24363ed1389e8db3f580e9048c70588","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@7.0.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"51c0713f233b804eb5adee3ef1e75d3243e0ff06","size":2716,"noattachment":false,"key":"/parse-json/-/parse-json-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_7.0.0_1680836421770_0.7574724347968855"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T03:00:21.988Z","publish_time":1680836421988,"_cnpm_publish_time":1680836421988},"6.0.2":{"name":"parse-json","version":"6.0.2","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.16.0","error-ex":"^1.3.2","json-parse-even-better-errors":"^2.3.1","lines-and-columns":"^2.0.2"},"devDependencies":{"ava":"^3.15.0","nyc":"^15.1.0","xo":"^0.46.4"},"gitHead":"c49a9c5e7835525cbbf2cf7ba973776bd37dbfe1","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@6.0.2","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"6bf79c201351cc12d5d66eba48d5a097c13dc200","size":2578,"noattachment":false,"key":"/parse-json/-/parse-json-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-6.0.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_6.0.2_1637475619018_0.6693775715479393"},"_hasShrinkwrap":false,"publish_time":1637475619136,"_cnpm_publish_time":1637475619136},"6.0.1":{"name":"parse-json","version":"6.0.1","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.16.0","error-ex":"^1.3.2","json-parse-even-better-errors":"^2.3.1","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^3.15.0","nyc":"^15.1.0","xo":"^0.46.4"},"gitHead":"0b526f282e8ce915ed38803c5076c6739a113a87","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@6.0.1","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"shasum":"30160ddf08d672801fecbc678b1e2222614da06c","size":2602,"noattachment":false,"key":"/parse-json/-/parse-json-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-6.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_6.0.1_1636944489097_0.6280738220215905"},"_hasShrinkwrap":false,"publish_time":1636944489224,"_cnpm_publish_time":1636944489224},"6.0.0":{"name":"parse-json","version":"6.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.16.0","error-ex":"^1.3.2","json-parse-even-better-errors":"^2.3.1","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^3.15.0","nyc":"^15.1.0","xo":"^0.46.4"},"gitHead":"f3689b3ab3a0fdd96e5fea2da1c401fd209e370c","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@6.0.0","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"shasum":"c8ee78ba5c5751047801b86808f45748a95a7bb8","size":2623,"noattachment":false,"key":"/parse-json/-/parse-json-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_6.0.0_1636011093752_0.8174168094929426"},"_hasShrinkwrap":false,"publish_time":1636011093913,"_cnpm_publish_time":1636011093913},"5.2.0":{"name":"parse-json","version":"5.2.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.0.0","error-ex":"^1.3.1","json-parse-even-better-errors":"^2.3.0","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^1.4.1","nyc":"^14.1.1","xo":"^0.24.0"},"gitHead":"b778e2eb368a0b935e0a999f6366e9edd95e4dc7","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@5.2.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c76fc66dee54231c962b22bcc8a72cf2f99753cd","size":2586,"noattachment":false,"key":"/parse-json/-/parse-json-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-5.2.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_5.2.0_1610968513349_0.05302152846825847"},"_hasShrinkwrap":false,"publish_time":1610968513459,"_cnpm_publish_time":1610968513459},"5.1.0":{"name":"parse-json","version":"5.1.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.0.0","error-ex":"^1.3.1","json-parse-even-better-errors":"^2.3.0","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^1.4.1","nyc":"^14.1.1","xo":"^0.24.0"},"gitHead":"0661a9c246bcec65407322126cf473dda91c0727","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@5.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f96088cdf24a8faa9aea9a009f2d9d942c999646","size":2521,"noattachment":false,"key":"/parse-json/-/parse-json-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_5.1.0_1598128987764_0.28417646929083196"},"_hasShrinkwrap":false,"publish_time":1598128987895,"_cnpm_publish_time":1598128987895},"5.0.1":{"name":"parse-json","version":"5.0.1","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.0.0","error-ex":"^1.3.1","json-parse-better-errors":"^1.0.1","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^1.4.1","nyc":"^14.1.1","xo":"^0.24.0"},"gitHead":"2c8dd7e96ede24bde310bc0238678b776d3b0b90","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@5.0.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7cfe35c1ccd641bce3981467e6c2ece61b3b3878","size":2513,"noattachment":false,"key":"/parse-json/-/parse-json-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-5.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_5.0.1_1595567916652_0.7594929598672941"},"_hasShrinkwrap":false,"publish_time":1595567916819,"_cnpm_publish_time":1595567916819},"5.0.0":{"name":"parse-json","version":"5.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string"],"dependencies":{"@babel/code-frame":"^7.0.0","error-ex":"^1.3.1","json-parse-better-errors":"^1.0.1","lines-and-columns":"^1.1.6"},"devDependencies":{"ava":"^1.4.1","nyc":"^14.1.1","xo":"^0.24.0"},"gitHead":"b5dca23e12a0a3dc9d2f706a24a6f569b23b2c40","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@5.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"73e5114c986d143efa3712d4ea24db9a4266f60f","size":2475,"noattachment":false,"key":"/parse-json/-/parse-json-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json_5.0.0_1562090541124_0.5214942991603031"},"_hasShrinkwrap":false,"publish_time":1562090541255,"_cnpm_publish_time":1562090541255},"4.0.0":{"name":"parse-json","version":"4.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js","vendor"],"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string","str"],"dependencies":{"error-ex":"^1.3.1","json-parse-better-errors":"^1.0.1"},"devDependencies":{"ava":"*","nyc":"^11.2.1","xo":"*"},"gitHead":"d1f4edbbef6e76ddc084b2f88e4d64a2b08081c5","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@4.0.0","_shasum":"be35f5425be1f7f6c747184f98a788cb99477ee0","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be35f5425be1f7f6c747184f98a788cb99477ee0","size":2029,"noattachment":false,"key":"/parse-json/-/parse-json-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-4.0.0.tgz_1509782029937_0.44315575854852796"},"directories":{},"publish_time":1509782030125,"_hasShrinkwrap":false,"_cnpm_publish_time":1509782030125},"3.0.0":{"name":"parse-json","version":"3.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js","vendor"],"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string","str"],"dependencies":{"error-ex":"^1.3.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"aacda96ce310718e1fff98cefdb6f114f031d23b","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@3.0.0","_shasum":"fa6f47b18e23826ead32f263e744d0e1e847fb13","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fa6f47b18e23826ead32f263e744d0e1e847fb13","size":9990,"noattachment":false,"key":"/parse-json/-/parse-json-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-json-3.0.0.tgz_1502964675950_0.48904961277730763"},"directories":{},"publish_time":1502964676080,"_hasShrinkwrap":false,"_cnpm_publish_time":1502964676080},"2.2.0":{"name":"parse-json","version":"2.2.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/parse-json"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && node test.js"},"files":["index.js","vendor"],"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string","str"],"dependencies":{"error-ex":"^1.2.0"},"devDependencies":{"ava":"0.0.4","xo":"*"},"xo":{"ignores":["vendor/**"]},"gitHead":"419b0cbb83e67af53f9fd3f7ff98605ea2020eb6","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json","_id":"parse-json@2.2.0","_shasum":"f480f40434ef80741f8469099f8dea18f55a4dc9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f480f40434ef80741f8469099f8dea18f55a4dc9","size":9910,"noattachment":false,"key":"/parse-json/-/parse-json-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441038990005,"_cnpm_publish_time":1441038990005,"_hasShrinkwrap":false},"2.1.0":{"name":"parse-json","version":"2.1.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && node test.js"},"files":["index.js","vendor"],"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string","str"],"dependencies":{"error-ex":"^1.1.0"},"devDependencies":{"ava":"0.0.4","xo":"*"},"xo":{"ignores":["vendor/**"]},"gitHead":"f91dcce91727e00a22dfe22af57575c4cbc34c77","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@2.1.0","_shasum":"7125b5f3f679b3d1d5c7fc4cd561cc1f4576aacc","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7125b5f3f679b3d1d5c7fc4cd561cc1f4576aacc","size":9772,"noattachment":false,"key":"/parse-json/-/parse-json-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440602154581,"_cnpm_publish_time":1440602154581,"_hasShrinkwrap":false},"2.0.0":{"name":"parse-json","version":"2.0.0","description":"Parse JSON with more helpful errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-json.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && node test.js"},"files":["index.js","vendor"],"keywords":["parse","json","graceful","error","message","humanize","friendly","helpful","string","str"],"devDependencies":{"ava":"0.0.4","xo":"*"},"xo":{"ignores":["vendor/**"]},"gitHead":"a1c87cd506ccb52eb4aadb5eacb5d0cf54a3d84f","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"homepage":"https://github.com/sindresorhus/parse-json#readme","_id":"parse-json@2.0.0","_shasum":"e59e30d2642041e9a359c99613c476b1133ca428","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e59e30d2642041e9a359c99613c476b1133ca428","size":9668,"noattachment":false,"key":"/parse-json/-/parse-json-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440512078170,"_cnpm_publish_time":1440512078170,"_hasShrinkwrap":false},"1.0.1":{"name":"parse-json","description":"The missing JSON.parse async interface.","homepage":"https://github.com/Kikobeats/parse-json","version":"1.0.1","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"https://github.com/Kikobeats/parse-json"},"bugs":{"url":"https://github.com/Kikobeats/parse-json/issues"},"keywords":["JSON","parse","async","promise"],"dependencies":{"cb2promise":"~1.0.0","ensure-async":"~1.0.0","errorifier":"~0.1.3"},"devDependencies":{"browserify":"*","coffee-script":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"25928f3a558d379cf6a52b9ae416177f2463237c","_id":"parse-json@1.0.1","_shasum":"6fc95f7ba8d60a58ac4cd9ea8ec88374e85987e9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6fc95f7ba8d60a58ac4cd9ea8ec88374e85987e9","size":8351,"noattachment":false,"key":"/parse-json/-/parse-json-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1438597762749,"_cnpm_publish_time":1438597762749,"deprecated":"renamed into 'json-parse-async', use it better!","_hasShrinkwrap":false},"1.0.0":{"name":"parse-json","description":"The missing JSON.parse async interface.","homepage":"https://github.com/Kikobeats/parse-json","version":"1.0.0","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"https://github.com/Kikobeats/parse-json"},"bugs":{"url":"https://github.com/Kikobeats/parse-json/issues"},"keywords":["JSON","parse","async","promise"],"dependencies":{"cb2promise":"~1.0.0","ensure-async":"~1.0.0","errorifier":"~0.1.3"},"devDependencies":{"browserify":"*","coffee-script":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"2e224300571311c6b9dc8cb387c4b7c7069b31dc","_id":"parse-json@1.0.0","_shasum":"d2b2abb5b86bb36fb50f3835a040109c5a3c9c37","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"d2b2abb5b86bb36fb50f3835a040109c5a3c9c37","size":8055,"noattachment":false,"key":"/parse-json/-/parse-json-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-json/download/parse-json-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1438110309989,"_cnpm_publish_time":1438110309989,"deprecated":"renamed into 'json-parse-async', use it better!","_hasShrinkwrap":false}},"readme":"# parse-json\n\n> Parse JSON with more helpful errors\n\n## Install\n\n```sh\nnpm install parse-json\n```\n\n## Usage\n\n```js\nimport parseJson, {JSONError} from 'parse-json';\n\nconst json = '{\\n\\t\"foo\": true,\\n}';\n\n\nJSON.parse(json);\n/*\nSyntaxError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)\n*/\n\n\nparseJson(json);\n/*\nJSONError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)\n\n  1 | {\n  2 |   \"foo\": true,\n> 3 | }\n    | ^\n*/\n\n\nparseJson(json, 'foo.json');\n/*\nJSONError: Expected double-quoted property name in JSON at position 16 (line 3 column 1) in foo.json\n\n  1 | {\n  2 |   \"foo\": true,\n> 3 | }\n    | ^\n  fileName: 'foo.json',\n  [cause]: SyntaxError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)\n      at JSON.parse (<anonymous>)\n      at ...\n*/\n\n\n// You can also add the filename at a later point\ntry {\n\tparseJson(json);\n} catch (error) {\n\tif (error instanceof JSONError) {\n\t\terror.fileName = 'foo.json';\n\t}\n\n\tthrow error;\n}\n/*\nJSONError: Expected double-quoted property name in JSON at position 16 (line 3 column 1) in foo.json\n\n  1 | {\n  2 |   \"foo\": true,\n> 3 | }\n    | ^\n\n  fileName: 'foo.json',\n  [cause]: SyntaxError: Expected double-quoted property name in JSON at position 16 (line 3 column 1)\n      at JSON.parse (<anonymous>)\n      at ...\n*/\n```\n\n## API\n\n### parseJson(string, reviver?, filename?)\n\nThrows a `JSONError` when there is a parsing error.\n\n#### string\n\nType: `string`\n\n#### reviver\n\nType: `Function`\n\nPrescribes how the value originally produced by parsing is transformed, before being returned. See [`JSON.parse` docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter\n) for more.\n\n#### filename\n\nType: `string`\n\nThe filename displayed in the error message.\n\n### JSONError\n\nExposed for `instanceof` checking.\n\n#### fileName\n\nType: `string`\n\nThe filename displayed in the error message.\n\n#### codeFrame\n\nType: `string`\n\nThe printable section of the JSON which produces the error.\n\n#### rawCodeFrame\n\nType: `string`\n\nThe raw version of `codeFrame` without colors.\n","_attachments":{},"homepage":"https://github.com/sindresorhus/parse-json#readme","bugs":{"url":"https://github.com/sindresorhus/parse-json/issues"},"license":"MIT"}