wallet-core/node_modules/strip-bom-stream/index.js
2016-10-10 03:43:44 +02:00

11 lines
238 B
JavaScript

'use strict';
var firstChunk = require('first-chunk-stream');
var stripBom = require('strip-bom');
module.exports = function () {
return firstChunk({minSize: 3}, function (chunk, enc, cb) {
this.push(stripBom(chunk));
cb();
});
};