mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-14 09:34:39 +00:00
9 lines
199 B
TypeScript
9 lines
199 B
TypeScript
import through = require('through');
|
|
|
|
var i = 0;
|
|
through(
|
|
function () {
|
|
this.queue((i++).toString());
|
|
}, function () {
|
|
this.queue(null);
|
|
}, { autoDestroy: true }).pipe(process.stdout); |