strip-bom
npmv5.0.0Strip 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| strip-bomthis page | 0 | 1 | MIT | 5 years ago |
| strip-json-comments | 0 | 2 | MIT | 1 day ago |
| redent | 0 | 3 | MIT | 1 day ago |
| strip-indent | 0 | 1 | MIT | 1 day ago |
| get-east-asian-width | 69.3M | 1 | MIT | 1 day ago |
| camelcase | 95.7M | 2 | MIT | 1 day ago |
Dependencies
Declared by strip-bom v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on strip-bom.
Relationship graph
Dependencies (left) and dependents (right) of strip-bom.
Frequently installed together
This packages is a collection of utilities and helper functions
No description provided.
This package contains shared types of Jest's packages.
TypeScript definitions for node
No description provided.
Convert Windows backslash paths to slash paths
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects
No description provided.
No description provided.
No description provided.
No description provided.
the most correct and second fastest glob implementation in JavaScript
Release history
No releases in the last two years, typically about 89 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.0.0latest | 5 years ago | 3.5 KB | MIT |
| 4.0.0 | 7 years ago | 3.8 KB | MIT |
| 3.0.0 | 10 years ago | — | MIT |
| 2.0.0 | 11 years ago | — | MIT |
| 1.0.0 | 12 years ago | — | MIT |
| 0.3.1 | 12 years ago | — | MIT |
| 0.3.0 | 12 years ago | — | MIT |
| 0.2.1 | 12 years ago | — | MIT |
| 0.2.0 | 12 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
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
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.