Simon Priet 9e2991e668 init
2021-09-05 22:53:58 +02:00

13 lines
306 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.emit('error', new Error('there was error'))
this.push(null);
}
};