</>PackageGraphPackageGraph

strip-bom

npmv5.0.0

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

Not recommended for new projects

No — strip-bom should not be adopted for new projects. Last published 1972 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1972 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 3.5 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding strip-bom to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

3.5 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=12
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the strip-bom README.

import stripBom from 'strip-bom';

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

strip-bom vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
strip-bomthis page01MIT5 years ago
strip-json-comments02MIT1 day ago
redent03MIT1 day ago
strip-indent01MIT1 day ago
get-east-asian-width69.3M1MIT1 day ago
camelcase95.7M2MIT1 day ago

Dependencies

Declared by strip-bom v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^3.15.0tsd ^0.14.0xo ^0.38.2

Used by

Popular packages that depend on strip-bom.

Relationship graph

Dependencies (left) and dependents (right) of strip-bom.

jest-runtimestrip-bom
strip-bom dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 89 days apart.

Recent versions of strip-bom
VersionPublishedSizeLicense
5.0.0latest5 years ago3.5 KBMIT
4.0.07 years ago3.8 KBMIT
3.0.010 years agoMIT
2.0.011 years agoMIT
1.0.012 years agoMIT
0.3.112 years agoMIT
0.3.012 years agoMIT
0.2.112 years agoMIT
0.2.012 years agoMIT
0.1.012 years agoMIT

Overview

strip-bom is an npm package that strip UTF-8 byte order mark (BOM) from a string. It has 1 known dependents in the graph. The latest version is 5.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need strip UTF-8 byte order mark (BOM) from a string and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use strip-bom?

No — strip-bom should not be adopted for new projects. Last published 1972 days ago.

How do I install strip-bom?

Run `npm install strip-bom` to add strip-bom to your npm project.

What license is strip-bom released under?

strip-bom is distributed under the MIT license.

How popular is strip-bom?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on strip-bom.

Is strip-bom still maintained?

The most recent release of strip-bom (v5.0.0) was published 5 years ago.

Does strip-bom run install scripts?

No. strip-bom does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.