Skip to content

Latest commit

 

History

History
executable file
·
31 lines (18 loc) · 533 Bytes

readme.md

File metadata and controls

executable file
·
31 lines (18 loc) · 533 Bytes

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);