0.0.1 • Published 9 years ago
co-got v0.0.1
co-got
Simple wrapper to the sindresorhus/got library for co-like interface (node.js generator based code). You can use it with koa or co.
Install
$ npm install --save co-got
Usage
var got = require('co-got');
var co = require('co');
co(function* () {
var result = yield got.get('http://google.com');
var data = result[0];
var response = result[1];
console.log('Data: ', data);
console.log('Response: ', response);
})();
API
Same as in sindresorhus/got, but with thunkified methods.
License
MIT © Viyaly Domnikov
0.0.1
9 years ago