You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
279 B

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