{"_id":"try-json-parse","_rev":"16-461ed6b3b9707d58cedf74c276a21cfd","name":"try-json-parse","description":"Doesn't throw an error when JSON.parse() fails, just returns undefined","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"try-json-parse","version":"0.0.1","description":"Doesn't throw an error when JSON.parse() fails, just returns null","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/alessioalex/try-json-parse"},"keywords":["err","custom","custom-error","customerror"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/try-json-parse/issues"},"_id":"try-json-parse@0.0.1","dist":{"shasum":"be0ae1fb60f93899bb486cadd1f683afc890bf41","tarball":"https://registry.npmjs.org/try-json-parse/-/try-json-parse-0.0.1.tgz","integrity":"sha512-3HxQdmPyW5r2/+199WkpvzNhZ8qobyDcNIzyydydkJu69YqPFiPIRVwy7Nhme/ZIiDA4hUTq1wpppE00v1Re5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExiPlfkqn2UPFb/rAVnuHuiR8v38Fds/IzVhA7EbmYAAiEA/s6iywLAx+ThkMS1T1Pap16JjUIfoKYos7eoeUp9RQc="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"0.1.0":{"name":"try-json-parse","version":"0.1.0","description":"Doesn't throw an error when JSON.parse() fails, just returns null","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/alessioalex/try-json-parse"},"keywords":["err","custom","custom-error","customerror"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/try-json-parse/issues"},"homepage":"https://github.com/alessioalex/try-json-parse","_id":"try-json-parse@0.1.0","dist":{"shasum":"6e166224e852bc05271209e1d0629ed5cc974835","tarball":"https://registry.npmjs.org/try-json-parse/-/try-json-parse-0.1.0.tgz","integrity":"sha512-GPk++YWLmLY7RsH9XkJyTXzFho2PJFE0t6kR1V7mkCNq1b7flGEz3QRrCoRoGRT5tB4700mdmZZA/jqGyqt4kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi3uOCicpsTRbuoN4dYujpmD8a4R90f3J3VjCEWaJSPAIgRYrkKFfkLN8Cmel/lz+DSxNk4l3Ro+o89IxMKUVMuwM="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"0.1.1":{"name":"try-json-parse","version":"0.1.1","description":"Doesn't throw an error when JSON.parse() fails, just returns undefined","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/alessioalex/try-json-parse"},"keywords":["err","custom","custom-error","customerror"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/try-json-parse/issues"},"homepage":"https://github.com/alessioalex/try-json-parse","_id":"try-json-parse@0.1.1","dist":{"shasum":"8db01622e877e51b83140caee7c80864ad390c82","tarball":"https://registry.npmjs.org/try-json-parse/-/try-json-parse-0.1.1.tgz","integrity":"sha512-igaSiuwBR2+OCvNtXrck27twmITzfwUoNhm07L1azno7/czZAEpsnRBnJ3EMLrlL3Jy7ZhuPWJA5wVXa+XAfxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxKFxESkY2KevzsfKr17nVfp+lHKwgEyJfqT0H97o3hAiEAifzDLguW1h7v/MB8pqvqhlm7TNHpJ/NXB6bhlkCfFAE="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"1.0.0":{"name":"try-json-parse","version":"1.0.0","description":"Doesn't throw an error when JSON.parse() fails, just returns undefined","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/try-json-parse.git"},"keywords":["err","custom","custom-error","customerror"],"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"license":"MIT","bugs":{"url":"https://github.com/alessioalex/try-json-parse/issues"},"gitHead":"dc2cc490db4bb91af22293c3596587828a43b554","homepage":"https://github.com/alessioalex/try-json-parse#readme","_id":"try-json-parse@1.0.0","_shasum":"e9047f223fcb5bc4886b19d9d2090543b8e9a804","_from":".","_npmVersion":"4.0.5","_nodeVersion":"6.9.4","_npmUser":{"name":"alessioalex","email":"npm@services.alessioalex.com"},"dist":{"shasum":"e9047f223fcb5bc4886b19d9d2090543b8e9a804","tarball":"https://registry.npmjs.org/try-json-parse/-/try-json-parse-1.0.0.tgz","integrity":"sha512-RJGHTSja8OlmohdI/jU/qM42Tt7sebRgRH89GKEtpOMGZesobRBcbkEwXMbiwqTFpF/1UxjNTSYHeQSXDFRBdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW9YKlffrczN5msR8eFIdZitifZVwerbozd10mTcfsRgIhAOcZLX+I62TNj5BZZS4vcwo8+8DWB4eDEmfPZnfzOxR0"}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/try-json-parse-1.0.0.tgz_1499333960689_0.07498899498023093"}}},"readme":"### try-json-parse\n\nJust like `JSON.parse()`, except it returns `undefined` instead of throwing an error for invalid JSON.\n\n### Usage\n\n```js\nvar JSONparse = require('./index'),\n    assert    = require('assert'),\n    fs        = require('fs');\n\nfs.readFile(__dirname + '/package.json', function(err, content) {\n  var pkgJson;\n\n  if (err) { throw err; }\n\n  pkgJson = JSONparse(content);\n  assert.equal(pkgJson.name, 'try-json-parse');\n  assert(JSONparse(fs.readFileSync(__filename)) === undefined);\n});\n```\n\n### Motivation\n\nGot tired of writing try {} catch {}.\n\n### License\n\nMIT\n","maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"time":{"modified":"2022-06-27T21:55:54.656Z","created":"2013-10-20T15:28:30.378Z","0.0.1":"2013-10-20T15:28:33.454Z","0.1.0":"2014-06-20T14:00:07.146Z","0.1.1":"2014-06-25T12:08:27.539Z","1.0.0":"2017-07-06T09:39:21.572Z"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com","url":"http://careers.stackoverflow.com/alessioalex"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/try-json-parse.git"},"keywords":["err","custom","custom-error","customerror"],"bugs":{"url":"https://github.com/alessioalex/try-json-parse/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/alessioalex/try-json-parse#readme","users":{"ierceg":true}}