Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gulp-bom

3.0.0 • Public • Published

gulp-bom Build Status

Add a UTF-8 BOM to files

From Wikipedia:

The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.

Gulp strips the BOM as it's useless. This is for the few dumb tools that do require it. Don't use this unless you really need to.

Install

$ npm install --save-dev gulp-bom

Usage

const gulp = require('gulp');
const bom = require('gulp-bom');
 
exports.default = () => (
    gulp.src('app.js')
        .pipe(bom())
        .pipe(gulp.dest('dist'))
);

Install

npm i gulp-bom

DownloadsWeekly Downloads

2,003

Version

3.0.0

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • avatar