ORESoftware / prepend-transform

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


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.

License:MIT License


Languages

Language:TypeScript 54.5%Language:Shell 26.8%Language:JavaScript 18.7%