{"name":"asyncify","version":"2.1.2","description":"The asyncify deferred module of FuturesJS (Ender.JS and Node.JS)","homepage":"https://github.com/coolaj86/futures","keywords":["flow-control","async","asynchronous","asyncify","util","browser"],"repository":{"type":"git","url":"git://github.com/coolaj86/futures.git"},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info"},"main":"asyncify.js","directories":{"lib":"."},"dependencies":{"future":"2.x"},"engines":{"node":"*","ender":">= 0.5.0"},"bugs":{"url":"https://github.com/coolaj86/futures/issues"},"_id":"asyncify@2.1.2","dist":{"shasum":"3405652a7026acef28a89e618fe6ef0a6ce58def","tarball":"http://registry-npm.ywwl.com/asyncify/download/asyncify-2.1.2.tgz","integrity":"sha512-WfbrNmdAV3LPNooqRAWu+u3eUgVe/dO3yMd2+3L0FlfkYBakrTXg+sgou6e7U6dl/K33c3eqJj/MupcTI/a3EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhprH0RWkJHWdNlDdDTRkBBXOhbq65gKaeKqufuR50hgIgKU1CerFPuOS8qOHslglBvm1HLsLOldlE4PIz7NVye54="}],"size":993,"noattachment":false,"key":"/asyncify/-/asyncify-2.1.2.tgz"},"_from":"./","_npmVersion":"1.3.11","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"readme":"asyncify()\n----\n\n  * `doStuff = Futures.asyncify(doStuffSync)` - returns a fuction with the same signature which catches errors and returns a future rather than the synchronous data.\n\n**Example:**\n\n    function doStuffSync = function (params) {\n      throw new Error(\"Error of some sort\");\n      return \"Hello\";\n    }\n\n    var doStuff = Futures.asyncify(doStuffSync);\n\n    doStuff.whenever(function (err, data) {\n      console.log(err, data);\n    });\n\n    doStuff();\n    doStuff();\n    doStuff().when(function (err, data) {\n      if (err) {\n        throw err;\n      }\n      console.log(data);\n    });\n","publish_time":1389636978956,"_cnpm_publish_time":1389636978956,"dist-tags":{"latest":"2.1.2"}}