11 lines
238 B
JavaScript
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();
|
|
});
|
|
};
|