Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    questorpublic

    questor

    Promise based HTTP client inspired by clj-http

    Usage

    var questor = require('questor');
     
    questor('https://github.com').then(function (res) {
      // Request was successful
      
      console.log(res.body); // Contains the response body
      console.log(res.headers); // Contains the response headers
      console.log(res.status); // Contains the response status code
    }, function (err) {
      // Request failed
      console.log(err);
    });

    TODO

    • Small resulting browserify bundle
    • Streaming request and response bodies
    • Types for requests, responses and errors

    Keywords

    none

    install

    npm i questor

    Downloadsweekly downloads

    621

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar