{"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","tarball":"http://registry-npm.ywwl.com/asyncify/download/asyncify-2.1.1.tgz","integrity":"sha512-lg460ZOqv8lPSQ9ktRUwrlVKrD4Ae5qFJ8S5+NuKncgexbKtQjDEaIka2Kh2a80j/Q9WRKyCXLVKG8LiKUAbng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVCN7bcJjKwmq4aCf5LDx1AmbtrG4N7U2N4kZARCa1hAIhAKPghsTwBs5AYBKI/J5SAliJsVVfuSNcfbJVm1lUWQQp"}],"size":782,"noattachment":false,"key":"/asyncify/-/asyncify-2.1.1.tgz"},"scripts":{},"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":1310588237218,"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"_cnpm_publish_time":1310588237218,"dist-tags":{"latest":"2.1.2"}}