promisemonkey
Easily convert objects, functions and METHODs to the Q promise API
Installation
You can install promisemonkey through npm:
$ npm install promisemonkey
Example
Access standard node APIs as promises
You can easily acccess the standard node APIs as promises:
var promisify = ;var fs = ;fs;
Convert an object
You can pass through a object with methods and then an array of the method names to promisify:
var promisify = ;// Pass through an object and array of method namesvar fs = promisify;// All the underlying functions should be accessiblevar contents = fs;tobeabove0;// You can then use the object methods which are now promisifiedfs
Convert a function
And, of course you can promisify a plain old function
var readFile = promisify;