Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 30, 2024 via pnpm

strip-bom 3.0.0

Strip UTF-8 byte order mark (BOM) from a string
Package summary
Share
0
issues
1
license
1
MIT
Package created
4 Apr 2014
Version published
30 Apr 2016
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
strip-bom@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of strip-bom 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does strip-bom do?

The Strip-BOM JavaScript library is designed to remove the UTF-8 byte order mark (BOM) from a string. The Unicode Standard allows for the use of BOM in UTF-8, but it is not a requirement or recommendation, as byte order has no meaning in UTF-8. This tool proves especially handy when dealing with strings that may accidentally include this unnecessary element.

How do you use strip-bom?

To effectively use Strip-BOM, you first need to install the package via npm by running $ npm install strip-bom in your terminal. Once installed, you can import it into your file with import stripBom from 'strip-bom';. To utilize the function, simply input the string you want to clean from the BOM, e.g., stripBom('\uFEFFunicorn');, this code will output 'unicorn'.

import stripBom from 'strip-bom';

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

Please, ensure that you replace '\uFEFFunicorn' with the actual string from which you want to strip the BOM.

Where are the strip-bom docs?

The documentation for Strip-BOM can be found in the readme content of the package's GitHub repository. It includes a brief explanation of what the tool does, how to install it, and how to use it. The repository also includes links to related packages β€” 'strip-bom-cli', 'strip-bom-buf', and 'strip-bom-stream', which provide command-line, buffer, and stream capabilities, respectively.