{"_id":"asyncify","_rev":"168310","name":"asyncify","description":"The asyncify deferred module of FuturesJS (Ender.JS and Node.JS)","dist-tags":{"latest":"2.1.2"},"maintainers":[{"name":"coolaj86","email":""}],"time":{"modified":"2021-06-03T11:48:53.000Z","created":"2011-07-13T20:17:17.218Z","2.1.2":"2014-01-13T18:16:18.956Z","2.1.1":"2011-07-13T20:17:17.218Z"},"users":{},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info"},"repository":{"type":"git","url":"git://github.com/coolaj86/futures.git"},"versions":{"2.1.2":{"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","size":993,"noattachment":false,"key":"/asyncify/-/asyncify-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/asyncify/download/asyncify-2.1.2.tgz"},"_from":"./","_npmVersion":"1.3.11","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"publish_time":1389636978956,"_hasShrinkwrap":false,"_cnpm_publish_time":1389636978956},"2.1.1":{"name":"asyncify","version":"2.1.1","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":"*"},"engines":{"node":"*","ender":">= 0.5.0"},"_npmJsonOpts":{"file":"/Users/coolaj86/.npm/asyncify/2.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"asyncify@2.1.1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"37ca5875abfc0388a154e0995cb06160ff55be88","size":782,"noattachment":false,"key":"/asyncify/-/asyncify-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/asyncify/download/asyncify-2.1.1.tgz"},"scripts":{},"publish_time":1310588237218,"maintainers":[{"name":"coolaj86","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1310588237218}},"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","_attachments":{},"homepage":"https://github.com/coolaj86/futures","bugs":{"url":"https://github.com/coolaj86/futures/issues"}}