bigint-crypto-utils/node_modules/collect-all/example/simple.js

8 lines
164 B
JavaScript
Raw Normal View History

var collectAll = require('../')
process.stdin
.pipe(collectAll(function (input) {
input = 'received: ' + input
return input
}))
.pipe(process.stdout)