xxx.js 200 B

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