mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
5 lines
219 B
TypeScript
5 lines
219 B
TypeScript
import Throttle = require('throttle');
|
|
|
|
process.stdin.pipe(new Throttle(100 * 1024)).pipe(process.stdout);
|
|
process.stdin.pipe(new Throttle({ bps: 100 * 1024, chunkSize: 100, highWaterMark: 500 })).pipe(process.stdout);
|