bigint-crypto-utils/node_modules/stream-via/example/simple.js

8 lines
150 B
JavaScript

const via = require('../')
process.stdin
.pipe(via(function (chunk) {
return chunk.toString().replace(/a/g, '4')
}))
.pipe(process.stdout)