1.0.2 • Published 10 years ago

spawn-stream v1.0.2

Weekly downloads
159
License
MIT
Repository
github
Last release
10 years ago

spawn-stream

Use a child process to transform a node-js stream.

var SpawnStream = require('spawn-stream');

var grepHello = SpawnStream('grep', ['hello'])
fs.createReadStream('input.txt')
    .pipe(grepHello).pipe(fs.createWriteStream('output.txt', 'w');

var ffmpeg = SpawnStream('ffmpeg', ['-i', '-', '-f', 'mp4', 'pipe:1']);
fs.createReadStream('input.ts')
    .pipe(ffmpeg).pipe(fs.createWriteStream('output.mp4', 'w');
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago