# thunkify Turn a regular node function into one which returns a thunk, useful for generator-based flow control such as [co](https://github.com/visionmedia/co). ## Installation ``` $ npm install thunkify ``` ## Example ```js var thunkify = require('thunkify'); var fs = require('fs'); var read = thunkify(fs.readFile); read('package.json', 'utf8')(function(err, str){ }); ``` # License MIT
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
test | Folder | 0755 |
|
|
.npmignore | File | 13 B | 0644 |
|
History.md | File | 460 B | 0644 |
|
Makefile | File | 99 B | 0644 |
|
Readme.md | File | 408 B | 0644 |
|
index.js | File | 767 B | 0644 |
|
package.json | File | 1.8 KB | 0644 |
|