Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

src-stream

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src-stream

Wrap readable streams to turn them into passthrough streams.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29K
decreased by-1.16%
Maintainers
2
Weekly downloads
 
Created
Source

src-stream NPM version Build Status

Wrap readable streams to turn them into passthrough streams.

Install with npm

$ npm i src-stream --save

Usage

var src = require('src-stream');

API

srcStream

Wrap a source stream to passthrough any data that's being written to it.

Params

  • stream {Stream}: Readable stream to be wrapped.
  • returns {Stream}: Duplex stream to handle reading and writing.

Example

var src = require('src-stream');

// wrap something that returns a readable stream
var stream = src(plugin());

fs.createReadStream('./package.json')
  .pipe(stream)
  .on('data', console.log)
  .on('end', function () {
    console.log();
    console.log('Finished');
    console.log();
  });
  • duplexify: Turn a writeable and readable stream into a streams2 duplex stream with support for async… more
  • merge-stream: Create a stream that emits events from multiple other streams
  • stream-loader: create a read stream from a glob of files. can be used as a loader-cache… more
  • through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Brian Woodward

License

Copyright © 2015 Brian Woodward Released under the MIT license.


This file was generated by verb-cli on July 14, 2015.

FAQs

Package last updated on 15 Jul 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc