q-request

Simple promise wrapper for http.request and https.request.

npm install q-request
2 downloads in the last week
6 downloads in the last month

q-request

Simple promise wrapper for http.request and https.request.

Installation

$ npm install -d q-request

Usage

var qRequest = require('q-request');

qRequest.get({
  hostname: 'raw.github.com',
  path: '/JamieMason/q-request/master/package.json',
  secure: true
}).then(function(body) {
  console.log(body);
});
npm loves you