Skip to content

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

License

Notifications You must be signed in to change notification settings

hklindworth/spawn-stream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%