superbird

1.0.3 • Public • Published

Superbird

superagent + bluebird = superbird :: Promisified superanget for the greater good.

Why

There's a plenty of ways to integrate superagent and bluebird, this is just one of them. It has a better API, by making .end() return a promise.

Usage

Install it

npm install --save superbird
 

Just like superagent, but promesified:

var request = require('superbird')
 
request
  .post('/api/pet')
  .send({ name: 'Manny', species: 'cat' })
  .set('X-API-Key', 'foobar')
  .set('Accept', 'application/json')
  .end()
  .then((res) => {
   // do what you want with my res.body
  })
 

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    3
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i superbird

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jugoncalves