An open API service indexing awesome lists of open source software.

https://github.com/tj/co-fs

nodejs core fs module thunk wrappers for "co"
https://github.com/tj/co-fs

Last synced: 4 months ago
JSON representation

nodejs core fs module thunk wrappers for "co"

Awesome Lists containing this project

README

          

# co-fs

Node core `fs` wrapped functions that return thunks for [co](https://github.com/visionmedia/co).

## Installation

```
$ npm install co-fs
```

## Example

Use all the regular async fs functions without callback hell:

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

## License

MIT