gulp-bom

5.0.0 • Public • Published

gulp-bom

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

import gulp from 'gulp';
import bom from 'gulp-bom';

export default () => (
	gulp.src('app.js')
		.pipe(bom())
		.pipe(gulp.dest('dist'))
);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    7
  • 4.0.0
    3
  • 3.0.0
    3,879
  • 2.0.0
    58
  • 1.0.0
    281

Package Sidebar

Install

npm i gulp-bom

Weekly Downloads

4,228

Version

5.0.0

License

MIT

Unpacked Size

2.86 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus