requesty

http and https requests in node and in browser

requesty

promise based http and https requests, in node and in browser

Install the module with: npm install requesty --save

var requesty = require('requesty');
 
requesty('http://httpbin.org/html').then(function (res) {
 
    expect(res.data.indexOf("Herman Melville - Moby-Dick")).to.be.greaterThan(10);
 
}).then(null, function (err) {
 
    console.log("%s\n%s", err.message, err.stack);
 
});
  • documentation - maybe I will add documentation if you ask it. open an issue for this.
  • support - open an issue here.

MIT © 2014, Andrea Parodi