replace_aaa.js 197 B

12345678910
  1. var through = require('through2');
  2. module.exports = function(file) {
  3. return through(function (buf, enc, next) {
  4. this.push(String(buf)
  5. .replace(/AAA/g, '5')
  6. );
  7. next();
  8. })
  9. }