replace_bbb.js 228 B

1234567891011
  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, '6')
  6. .replace(/BBB/g, '50')
  7. );
  8. next();
  9. })
  10. }