{"_id":"rezult","_rev":"1736964","name":"rezult","description":"A value or error object","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"jcorbin","email":"jcorbin@wunjo.org"},{"name":"kriskowal","email":"kris.kowal@cixar.com"}],"time":{"modified":"2026-11-16T05:49:23.000Z","created":"2015-04-18T05:37:57.445Z","1.1.0":"2015-09-30T22:14:07.108Z","1.0.0":"2015-04-18T05:37:57.445Z"},"users":{},"author":{"name":"Kris Kowal","email":"kris@cixar.com"},"repository":{"type":"git","url":"git+https://github.com/kriskowal/rezult.git"},"versions":{"1.1.0":{"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"}],"publish_time":1443651247108,"_cnpm_publish_time":1443651247108},"1.0.0":{"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"},"publish_time":1429335477445,"_cnpm_publish_time":1429335477445}},"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","_attachments":{},"homepage":"https://github.com/kriskowal/rezult","bugs":{"url":"https://github.com/kriskowal/rezult/issues"},"license":"MIT"}