1.0.0 • Published 10 years ago
thunkous v1.0.0
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")
1.0.0
10 years ago