thunkous

1.0.0 • Public • Published

thunkous

Monkeypatch that lets you easily turn any async function or method into a thunk

Loosely based on fibrous

Ex:

    fs.thunk.readFile("/tmp/hello.txt", "utf8")

is the same as

    require("thunkify")(fs.readFile)("/tmp/hello.txt", "utf8")

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i thunkous

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • ccheever