hypersponse

1.0.3 • Public • Published

NPM Build Status

hypersponse

Simple buffering for hyperquest with the callback style of request.

This module has no dependencies and works in the browser with browserify.

Why

Buffering a stream and normalizing callback paths can pretty verbose - especially if you find yourself doing it a lot.

NOTE: Don't buffer unless you have to. Buffering means loading the entire response into RAM all at once.

Install

Using npm:

npm install hyperquest --save

Example

var hyperquest = require('hyperquest');
var hypersponse = require('hypersponse');
 
var r = hyperquest('http://localhost:8000');
hypersponse(r, function(error, response, buffer){
  ...
});

License

MIT

Package Sidebar

Install

npm i hypersponse

Weekly Downloads

31

Version

1.0.3

License

MIT

Last publish

Collaborators

  • bendytree