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.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i thunk-to-promise

    Weekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • hemanth