mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
13 lines
296 B
JavaScript
13 lines
296 B
JavaScript
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);
|
|
}
|
|
};
|