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"
- Host: GitHub
- URL: https://github.com/tj/co-fs
- Owner: tj
- Created: 2013-06-06T05:08:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-08T05:00:58.000Z (almost 10 years ago)
- Last Synced: 2025-08-28T05:58:38.267Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 177 KB
- Stars: 106
- Watchers: 7
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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