
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
buffered-response
Advanced tools
Utility library for line-by-line reading from any readable text stream
A small utility class to wrap response objects from the http module, and provide line-by-line iteration.
var http = require('http');
var BufferedResponse = require('buffered-response').BufferedResponse;
var options = {
host: 'foo',
path: '/a/b?q=3',
method: 'GET'
};
var req = http.request(options, function(resp) {
var reader = new BufferedResponse(resp);
reader.setEncoding('utf8');
var lineno = 1;
reader.on('line', function(line) {
console.log("LINE " + lineno++ + ": " + line);
});
});
req.end();
0.0.1 Intial version 0.0.2 (Thu Nov 8 16:43:50 GMT 2012): Moved from jquery-deferred to underscore-deferred. 0.0.3 (Sun Nov 11 16:33:20 GMT 2012): Allow null values to be passed in as callbacks (they are ignored). 0.0.4 ..: Also ignore null filters 0.0.5 (Sun Nov 11 23:10:35 GMT 2012): Wrap all callbacks in try-catch.
FAQs
Utility library for line-by-line reading from any readable text stream
We found that buffered-response demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.