This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('generator-async'); | |
// load `fs` with async's `require` | |
var fs = async.require('fs'); | |
async.run(function*() { | |
// read a file | |
var passwd = yield fs.readFile('/etc/passwd'); |