q-ify

0.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    7
  • 0.0.0
    1

Package Sidebar

Install

npm i q-ify

Weekly Downloads

6

Version

0.1.0

License

none

Last publish

Collaborators

  • simonfan