mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 15:05:08 +00:00
| .. | ||
| test | ||
| .npmignore | ||
| History.md | ||
| index.js | ||
| Makefile | ||
| package.json | ||
| Readme.md | ||
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