strip-bom
Advanced tools
Weekly downloads
Readme
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.
$ npm install strip-bom
import stripBom from 'strip-bom';
stripBom('\uFEFFunicorn');
//=> 'unicorn'
FAQs
Strip UTF-8 byte order mark (BOM) from a string
The npm package strip-bom receives a total of 46,267,249 weekly downloads. As such, strip-bom popularity was classified as popular.
We found that strip-bom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.