How to use the strip-bom.stream function in strip-bom

To help you get started, we’ve selected a few strip-bom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Andyliwr / FE-learning-load / 前端小demo / es6Toes5 / node_modules / vinyl-fs / lib / src / getContents / streamFile.js View on Github external
function streamFile(file, cb) {
  file.contents = fs.createReadStream(file.path)
    .pipe(stripBom.stream());

  cb(null, file);
}
github HamidMosalla / FreelancerBlog / WebFor / src / WebFor.Web / node_modules / gulp / node_modules / vinyl-fs / lib / src / getContents / streamFile.js View on Github external
function streamFile(file, cb) {
  file.contents = fs.createReadStream(file.path)
    .pipe(stripBom.stream());

  cb(null, file);
}
github hawtio / hawtio-ui / node_modules / vinyl-fs / lib / src / getContents / streamFile.js View on Github external
function streamFile(file, cb) {
  file.contents = fs.createReadStream(file.path)
    .pipe(stripBom.stream());

  cb(null, file);
}
github FredHutch / Oncoscape / client / node_modules / gulp-useref / node_modules / vinyl-fs / lib / src / getContents / streamFile.js View on Github external
function streamFile(file, cb) {
  file.contents = fs.createReadStream(file.path)
    .pipe(stripBom.stream());

  cb(null, file);
}
github mendersoftware / gui / node_modules / vinyl-fs / lib / src / getContents / streamFile.js View on Github external
function streamFile(file, cb) {
  file.contents = fs.createReadStream(file.path)
    .pipe(stripBom.stream());

  cb(null, file);
}

strip-bom

Strip UTF-8 byte order mark (BOM) from a string

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis

Popular strip-bom functions