mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-07 22:38:13 +08: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); |