A transform stream to limit the length of a stream.
const StreamLimiter = require('@trenskow/stream-limiter');
const myReadableStream = /* a readable stream */
const myWriteableStream = /* a writeable stream */
myReadableStream.pipe(new StreamLimiter(1000 /* (limit) */)).pipe(myWriteableStream)
See LICENSE