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