blob: 6d0a1a8758d463dd9229cd79ae12dae94d49f91f [file] [log] [blame]
var through = require('through2');
module.exports = function (file, opts) {
var data = '';
return through(write, end);
function write (buf, enc, next) { data += buf; next() }
function end () {
this.push(data.replace(/X/g, opts.x));
this.push(null);
}
};