Upsilon-VsCode/Client/node_modules/strip-bom-stream/index.js

11 lines
238 B
JavaScript
Raw Normal View History

2019-02-17 17:07:28 +00:00
'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();
});
};