npm.io
0.0.1019 • Published 7 years agoCLI

prepend-transform

Licence
MIT
Version
0.0.1019
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
4

Prepend-Transform

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

Keywords