conventional-changelog-action/node_modules/strip-bom
Conventional Changelog Action 9b8c94a880 chore(release): v3.13.0 [skip ci] 2022-05-27 14:13:36 +00:00
..
index.js chore(release): v3.13.0 [skip ci] 2022-05-27 14:13:36 +00:00
license chore(release): v3.13.0 [skip ci] 2022-05-27 14:13:36 +00:00
package.json chore(release): v3.13.0 [skip ci] 2022-05-27 14:13:36 +00:00
readme.md chore(release): v3.13.0 [skip ci] 2022-05-27 14:13:36 +00:00

readme.md

strip-bom Build Status

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

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.

Install

$ npm install --save strip-bom

Usage

const stripBom = require('strip-bom');

stripBom('\uFEFFunicorn');
//=> 'unicorn'

License

MIT © Sindre Sorhus