Package Exports
- thunkify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (thunkify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
var thunkify = require('thunkify');
var fs = require('fs');
var read = thunkify(fs.readFile);
read('package.json', 'utf8')(function(err, str){
});
License
MIT