beer ![npm](https://badge.fury.io/js/beer.png)
a useful warpper of request. have a drink and waiting for results callback.
How to install
$ npm install beer
Sample code
var beer = ; beer;
API
beer.get(url,params,callback)
url
[String]params
[Object]query
key
:value
: params will joinURL
as?key=value
callback
[Funtion]- error : null or error object
- result : fetch result
beer.post(url,params,callback)
url
[String]params
[Object] sent asform
key
:value
callback
[Funtion]- error : null or error object
- result : fetch result
Run unit-test (Mocha)
$ git clone https://github.com/turingou/beer.git
$ cd beer
$ npm install // will install mocha localy
$ npm test