index.js 200 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 var through = require('through2'); module.exports = function (file) { return through(function (buf, enc, next) { this.push(String(buf).replace(/XXX/g, '123')); next(); }); };