cofy-node
node co version.
Installation
$ npm install cofy-node --save
Old methods not change.New methods invoke convention: yield obj.$asyncMethod
Example:
;var fs = ;var child_process = ;var dns = ;var zlib = ; ;
Supported methods:
fs
these methods has co version
readFile,close,open,read,write,
rename,truncate,ftruncate,rmdir,fdatasync,
fsync,mkdir,readdir,fstat,lstat,stat,
readlink,symlink,link,unlink,fchmod,chmod,
fchown,chown,utimes,futimes,writeFile,
appendFile,watch,watchFile,unwatchFile,realpath,
createReadStream,createWriteStream
child_process
- $exec(command ,[options]) - return
[stdout,stderr,ChildProcess object]
- $execFile(file,[args],[options]) - return
[stdout,stderr,ChildProcess object]
dns
All async methods
zlib
these methods has co version
deflate, deflateRaw,gzip,gunzip,inflate,inflateRaw,unzip