thunkous
v1.0.0
Published
Monkeypatch that lets you easily turn any async function or method into a thunk
Downloads
3
Maintainers
Readme
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")