unbom

0.1.0 • Public • Published

unbom

Strip a BOM (UTF-8 Byte Order Mark) from a string or Buffer.

API

This module exports one function:

unbom(x)

x is the string or Buffer that might start with a BOM. If it does, returns the remainder of x. Otherwise, returns the original x.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Package Sidebar

Install

npm i unbom

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

1.73 kB

Total Files

3

Last publish

Collaborators

  • mk-pmb