{"name":"rezult","version":"1.1.0","description":"A value or error object","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/kriskowal/rezult.git"},"keywords":["result","maybe"],"author":{"name":"Kris Kowal","email":"kris@cixar.com"},"license":"MIT","bugs":{"url":"https://github.com/kriskowal/rezult/issues"},"homepage":"https://github.com/kriskowal/rezult","gitHead":"4a03891f43599e308514048ebb7d376ae0c78760","_id":"rezult@1.1.0","_shasum":"2729abf954287bcfba7dea1ba79a94fbff21fb6b","_from":".","_npmVersion":"2.14.6","_nodeVersion":"0.10.32","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"dist":{"shasum":"2729abf954287bcfba7dea1ba79a94fbff21fb6b","tarball":"http://registry-npm.ywwl.com/rezult/download/rezult-1.1.0.tgz","integrity":"sha512-kguc5dkVvnlCMSAIgzmOsrPV+Ab8vgZTB/qxiibLu8Zb1XkzgEp8TFReQ3yDjLuKyOrXuePl99AtOZIs5MWw0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEpdxQNv4RP+MYhfPEQjs/s8hRjUGsTaR8gqx3LUBiiNAiAQ3VHy8fIKSnZ8r7h1KfBfL9V8BqK5up2tyJZKE/mR3A=="}],"size":868,"noattachment":false,"key":"/rezult/-/rezult-1.1.0.tgz"},"maintainers":[{"name":"jcorbin","email":"jcorbin@wunjo.org"},{"name":"kriskowal","email":"kris.kowal@cixar.com"}],"readme":"A JavaScript value or error object.\n\n```js\nvar Result = require(\"rezult\");\n\nfunction safeJsonParse(string) {\n    try {\n        return new Result(null, JSON.parse(string));\n    } catch (err) {\n        return new Result(err);\n    }\n};\n\nsafeJsonParse(\"{}\").toCallback(cb); // cb(null, {})\nsafeJsonParse(\"wat\").toValue(); // throw SyntaxError\n```\n\nMIT License\n","publish_time":1443651247108,"_cnpm_publish_time":1443651247108,"dist-tags":{"latest":"1.1.0"}}