🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

prefix-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prefix-stream

prefixes a (text) stream with a given string before each chunk, useful, for e.g., when piping text from multiple sources to stdout

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
312
-67.74%
Maintainers
1
Weekly downloads
 
Created
Source

prefix-stream NPM version Build Status Dependency Status

prefixes a (text) stream with a given string before each chunk, useful, for e.g., when piping text from multiple sources to stdout

Install

$ npm install --save prefix-stream

Usage

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

var source = ... // or anything stream that outputs text

source.pipe(prefix('my cool prefix: ')).pipe(process.stdout);

Alternatively, you can use new PrefixStream({prefix: 'my cool prefix: '}) if you need to pass other options to the underlying stream implementation.

License

MIT © Nathan Friedly

Keywords

prefix

FAQs

Package last updated on 26 Oct 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