0.0.1 • Published 5 months ago

@3rd/strip-bom v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

@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