Skip to content

Repository files navigation

thunkify

Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.

Installation

$ npm install thunkify

Example

varthunkify=require('thunkify');varfs=require('fs');varread=thunkify(fs.readFile);read('package.json','utf8')(function(err,str){});

License

MIT

About

Turn a regular node function into one which returns a thunk

Resources

Stars

860 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages