0.1.0 • Published 10 years ago

q-ify v0.1.0

Weekly downloads
11
License
-
Repository
github
Last release
10 years ago

q-ify

Usage:

npm install q-ify --save
var qify = require('q-ify');

// simple static method wrapping
var qfs = qify(['readFile', 'readdir'], 'fs');

// w

qify(methods, object, context)

Returns an object that has all methods available on the original object with selected methods in that return promises.

qify.factory(methods, factory, context)

Returns a factory function that creates qified objects.