biofriction-wp-theme/node_modules/strip-bom-stream/index.js

15 lines
279 B
JavaScript

'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));
});
};