promisifyhttprequest

1.0.1 • Public • Published

promisifyhttprequest

Using bluebird to promisify Node's http.request

Example code

var request = require('promisifyhttprequest');

var myRequest = request({
    method: 'GET',
    host: 'nodejs.org',
    port: 80,
    path: '/api',
}).then(function(value) {
    console.log('value:', value);
});

Readme

Keywords

Package Sidebar

Install

npm i promisifyhttprequest

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • elankeeran