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")

    Install

    npm i thunkous

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar