package
Turn callbacks, arrays, generators, generator functions, and promises into a thunk
npm install thunkifyGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.
$ npm install thunkifyvar thunkify = require('thunkify');
var fs = require('fs');
var read = thunkify(fs.readFile);
read('package.json', 'utf8')(function(err, str){
});MIT