Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.
/ node-streamin Public archive

Provide a better streaming api in your app.

License

Notifications You must be signed in to change notification settings

fent/node-streamin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-streamin

* Abandoned *

Provide a better streaming api for your module.

Build Status Dependency Status

Usage

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.

API

streamin(io, [requestOptions])

If io is a path to a file, it will return a readable 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.

requestOptions are passed to request.

Install

npm install streamin

Tests

Tests are written with mocha

npm test

License

MIT

About

Provide a better streaming api in your app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published