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 Apr 11, 2024 via pnpm

strip-bom 0.3.0

Strip UTF-8 byte order mark (BOM) from a string/buffer/stream
Package summary
Share
0
issues
2
licenses
9
MIT
1
ISC
Package created
4 Apr 2014
Version published
14 May 2014
Maintainers
1
Total deps
10
Direct deps
2
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
9 Packages, Including:
core-util-is@1.0.3
is-utf8@0.2.1
isarray@0.0.1
object-keys@0.4.0
readable-stream@1.0.34
string_decoder@0.10.31
strip-bom@0.3.0
through2@0.4.2
xtend@2.1.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
inherits@2.0.4
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

2
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
is-utf80.2.11.59 kBMIT
prod
through20.4.24.09 kBMIT
prod

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.