thunk-to-promise

1.0.1 • Public • Published

thunk-to-promise

Converts a Thunk to a Promise. (Picked from co)

Get it: npm install --save thunk-to-promise

Sample usage:

var readThunk = require("thunkify")(fs.read);

var thunkToPromise = require("thunk-to-promise");

var readPromise = thunkToPromise(readThunk);

// readPromisse is your thunk, that got converted to a Promise.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i thunk-to-promise

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth