spawn-to-readstream
Description
Make child process spawn behave like a read stream (buffer the error, don't emit end if error emitted).
Installation
npm install spawn-to-readstream
Examples
var toReadStream = spawn = spawn; ;
Limiting the output of the steam
var toReadStream = spawn = spawn limit buf; buf = 0;limit = 100 * 1024; // 100 Kb // Note that it's a 'soft' limit, meaning the data you// receive might be > 100 Kb, because the child process// was stopped after receiving more than <LIMIT> bytes ;
Tests
npm test
License
MIT