0.0.1 • Published 10 years ago
corepl v0.0.1
corepl
a repl for https://github.com/visionmedia/co
$ npm install -g corepl
or
$ npm install --save corepl
example using thunkify and request
> var thunkify = require('thunkify')
> var request = require('request')
> var get = thunkify(request.get)
> yield get('https://api.github.com/repos/jbr/corepl')
> var wait = function(ms) { return function(cb) { setTimeout(cb, ms) }}
> yield wait(1000)
// a second passes
>
0.0.1
10 years ago