12 lines
228 B
JavaScript
12 lines
228 B
JavaScript
var through = require('through2');
|
|
|
|
module.exports = function(file) {
|
|
return through(function (buf, enc, next) {
|
|
this.push(String(buf)
|
|
.replace(/AAA/g, '6')
|
|
.replace(/BBB/g, '50')
|
|
);
|
|
next();
|
|
})
|
|
}
|