Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

strip-bom

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

strip-bom

Strip UTF-8 byte order mark (BOM) from a string

    5.0.0latest

Version published
Maintainers
1
Weekly downloads
46,590,017
decreased by-3.34%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 12 ccc18e1
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/strip-bom/compare/v4.0.0...v5.0.0

Readme

Source

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 'strip-bom'; stripBom('\uFEFFunicorn'); //=> 'unicorn'
Get professional support for 'strip-bom' with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

FAQs

What is strip-bom?

Strip UTF-8 byte order mark (BOM) from a string

Is strip-bom popular?

The npm package strip-bom receives a total of 37,773,053 weekly downloads. As such, strip-bom popularity was classified as popular.

Is strip-bom well maintained?

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.

Last updated on 16 Apr 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc