Website/node_modules/co-fs
2015-12-02 18:21:44 -05:00
..
examples Initial website 2015-12-02 18:21:44 -05:00
node_modules/thunkify Initial website 2015-12-02 18:21:44 -05:00
test Initial website 2015-12-02 18:21:44 -05:00
.npmignore Initial website 2015-12-02 18:21:44 -05:00
History.md Initial website 2015-12-02 18:21:44 -05:00
index.js Initial website 2015-12-02 18:21:44 -05:00
Makefile Initial website 2015-12-02 18:21:44 -05:00
package.json Initial website 2015-12-02 18:21:44 -05:00
Readme.md Initial website 2015-12-02 18:21:44 -05:00

co-fs

Node core fs wrapped functions that return thunks for co.

Installation

$ npm install co-fs

Example

Use all the regular async fs functions without callback hell:

var json = yield fs.readFile('package.json', 'utf8')
var files = yield fs.readdir('/tmp')

License

MIT