webhook/node_modules/strip-bom
Joel Male 1ada95e04a
v2.0.0 (#12)
- Convert project to Javascript/Typescript
- Allow custom headers to be passed in (optional)
- Allow body to be optional
2020-08-26 10:52:47 +10:00
..
index.js v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
license v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
package.json v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
readme.md v2.0.0 (#12) 2020-08-26 10:52:47 +10:00

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