@3rd/strip-bom
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@3rd/strip-bom

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 strip-bom

Usage

import stripBom from '@3rd/strip-bom';

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

Related

Package Sidebar

Install

npm i @3rd/strip-bom

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

1.48 kB

Total Files

4

Last publish

Collaborators

  • scriptpower