|
|
hace 4 años | |
|---|---|---|
| .. | ||
| test | hace 4 años | |
| .npmignore | hace 4 años | |
| History.md | hace 4 años | |
| Makefile | hace 4 años | |
| Readme.md | hace 4 años | |
| index.js | hace 4 años | |
| package.json | hace 4 años | |
Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as co.
$ npm install thunkify
var thunkify = require('thunkify');
var fs = require('fs');
var read = thunkify(fs.readFile);
read('package.json', 'utf8')(function(err, str){
});
MIT