lie-denodify

0.3.0 • Public • Published

lie-denodify Build Status

API

npm install lie-denodify
var denodify = require('lie-denodify');

denodify

denodify(func, context[optional]);

takes as an argument a function which has a callback as it's last argument, returns a function that acts identically except it returns a promise instead of taking a callback and that arguments passed to the function may be promises as well

As a second argument it can take an object to call the function as a method of, if omitted calls it in the same context that the function was called (i.e. like normal).

License

MIT

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    7
  • 0.2.0
    1
  • 0.1.2
    2
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i lie-denodify

Weekly Downloads

6

Version

0.3.0

License

MIT

Last publish

Collaborators

  • cwmma