Socket
Socket
Sign inDemoInstall

questor

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    questor

Promise based HTTP client inspired by clj-http


Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Install size
677 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 23 Jun 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc