UNPKG

zuul

Version:
10 lines (9 loc) 280 B
// test browserify transform // changes all instances of 'foo' to 'bar' var through = require('through2'); module.exports = function (file) { return through(function (buf, enc, next) { this.push(buf.toString('utf8').replace(/foo/g, 'bar')); next(); }); };