Mockstream is a very simple utility library of streams helpful for testing
npm install mockstream
A simple readable stream that outputs a stream of a given length filled with bogus data (lots of 0's).
var mockstream = require('mockstream'),
stream = new mockstream.MockDataStream({
chunkSize: 1024, // 1 KB data chunks
streamLength: 1048576 // 1 MB of data
});
// Register listeners, etc
// Start pumping data
stream.start();