Skip to content

Uses a Node.js transform stream to prepend the given string to the front of each line.

License

Notifications You must be signed in to change notification settings

ORESoftware/prepend-transform

Folders and files

NameName
Last commit message
Last commit date
Sep 19, 2018
May 30, 2018
Nov 12, 2017
Sep 28, 2018
Nov 12, 2017
May 7, 2018
Jun 25, 2018
May 7, 2018
May 30, 2018
Jun 7, 2018
Apr 11, 2019
Apr 11, 2019
Apr 11, 2019
Jun 7, 2018

Repository files navigation


Version

Prepend-Transform

Prepend text to the beginning of each line in a stream.

Installation

npm install -S prepend-transform

Usage

import pt from 'prepend-transform';
import * as cp from 'child_process';

const n = cp.spawn('bash');

n.stdout.pipe(pt('child stdout: ')).pipe(process.stdout);
n.stderr.pipe(pt('child stderr: ')).pipe(process.stderr);

About

Uses a Node.js transform stream to prepend the given string to the front of each line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published