chensenlai 10988628a0 语音房项目初始化 5 years ago
..
examples 10988628a0 语音房项目初始化 5 years ago
node_modules 10988628a0 语音房项目初始化 5 years ago
test 10988628a0 语音房项目初始化 5 years ago
.npmignore 10988628a0 语音房项目初始化 5 years ago
History.md 10988628a0 语音房项目初始化 5 years ago
Makefile 10988628a0 语音房项目初始化 5 years ago
Readme.md 10988628a0 语音房项目初始化 5 years ago
index.js 10988628a0 语音房项目初始化 5 years ago
package.json 10988628a0 语音房项目初始化 5 years ago

Readme.md

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