http and https requests in node and in browser
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.jshintrc
.travis.yml
Gulpfile.js
LICENSE-MIT
README.md
package.json
run-test-httpbin-server
run-test-sauce.js

README.md

requesty

Build Status Npm module Code Climate

Sauce Test Status

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

Getting Started

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);

});

Other stuff

  • documentation - maybe I will add documentation if you ask it. open an issue for this.
  • support - open an issue here.

License

MIT © 2014, Andrea Parodi