{"name":"rezult","version":"1.0.0","description":"A value or error object","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"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":"a2249cc7ed77820ef9fa8ef2d337a111fa9ecfcb","_id":"rezult@1.0.0","_shasum":"de5a1fa78d108eb14e3e63ee2578b624265a8ad1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":"kris.kowal@cixar.com"}],"dist":{"shasum":"de5a1fa78d108eb14e3e63ee2578b624265a8ad1","tarball":"http://registry-npm.ywwl.com/rezult/download/rezult-1.0.0.tgz","integrity":"sha512-qUQabyU1RRsQS47XpqKUV+o4Tngxrj9lyLuC2rIZ+n1kawdv5OcsG/KVHkYk5Zpwss+6908AbrdgUfWvr8EccQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSpl+cJVkEBVrGPqUkJ+Jj5ilBPXx4Cn3MfYDh2S8lfAIgHqsy8qhVIc7MjvqVJjlb34//SF5GEl940z1bBPP4Fj4="}],"size":751,"noattachment":false,"key":"/rezult/-/rezult-1.0.0.tgz"},"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":1429335477445,"_cnpm_publish_time":1429335477445,"dist-tags":{"latest":"1.1.0"}}