odin-default-js-exercises/node_modules/strip-bom
Cody Loyd 834d78b8b2 remove timer and simon 2017-12-15 12:56:14 -06:00
..
index.js remove timer and simon 2017-12-15 12:56:14 -06:00
license remove timer and simon 2017-12-15 12:56:14 -06:00
package.json remove timer and simon 2017-12-15 12:56:14 -06:00
readme.md remove timer and simon 2017-12-15 12:56:14 -06: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