Provide a better streaming api in your app.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib fix. actually resolve the stream Apr 30, 2014
test check for compression stream in requests Apr 27, 2014
.gitignore first commit Jul 19, 2012
.travis.yml add node v6 Jul 5, 2016
LICENSE first commit Jul 19, 2012 abandoned :) Jul 24, 2016
package.json update packages Feb 26, 2015


* Abandoned *

Provide a better streaming api for your module.

Build Status Dependency Status


var streamin = require('streamin');

// `io` can be a path to a file, a url, or a stream
var stream = streamin(io);

That's the gist of it. With this you can give your code a more conveniet API by allowing streams to be passed into your function and also consider the common use cases of files and urls as inputs or outputs.


streamin(io, [requestOptions])

If io is a path to a file, it will return a stream that points to a local file. If it's a url, a stream from a remote request will be returned. If it detects that io is already a stream, it returns it. Will also decompress a gzip/deflate compressed http stream.

requestOptions can be a hash of options passed to request.


npm install streamin


Tests are written with mocha

npm test