Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thibauts/node-url-stream

Transforms a stream of URLs into a stream of their body content
https://github.com/thibauts/node-url-stream

Last synced: 21 days ago
JSON representation

Transforms a stream of URLs into a stream of their body content

Awesome Lists containing this project

README

        

url-stream
==========
### Transforms a stream of URLs into a stream of their body content

Takes a stream of URLs separated by newlines as input, and outputs the corresponding body contents.

Installation
------------

``` bash
$ npm install url-stream
```

Usage
-----

``` javascript
var urlStream = require('url-stream');

var transform = urlStream.createStream();
transform.on('error', function(err) {
console.error(err);
});

process.stdin.pipe(transform).pipe(process.stdout);
```