# stripbom

> Strip UTF-8 byte order mark (BOM) from a string. Works in all node versions

Latest version **3.0.0** (published 2016-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install stripbom
pnpm add stripbom
yarn add stripbom
bun add stripbom
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-07-30 |
| First published | 2016-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Indigo |
| Maintainers | alexindigo |
| Keywords | strip, bom, byte, order, mark, unicode, utf8, utf-8, remove, delete, trim, text, string, node, 0.10, 0.12 |

## Links

- npm: https://www.npmjs.com/package/stripbom
- Repository: https://github.com/alexindigo/stripbom
- Homepage: https://github.com/alexindigo/stripbom#readme
- Issues: https://github.com/alexindigo/stripbom/issues
- npm.io page: https://npm.io/package/stripbom

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2016-07-30

## README

# stripbom [![NPM Module](https://img.shields.io/npm/v/stripbom.svg?style=flat)](https://www.npmjs.com/package/stripbom)

Strip UTF-8 byte order mark (BOM) from a string. Works in all node versions.

[![Linux Build](https://img.shields.io/travis/alexindigo/stripbom/master.svg?label=linux:0.10-6.x&style=flat)](https://travis-ci.org/alexindigo/stripbom)
[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/stripbom/master.svg?label=windows:0.10-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/stripbom)

[![Coverage Status](https://img.shields.io/coveralls/alexindigo/stripbom/master.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/stripbom?branch=master)
[![Dependency Status](https://img.shields.io/david/alexindigo/stripbom.svg?style=flat)](https://david-dm.org/alexindigo/stripbom)

[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/stripbom/badges/score.svg)](https://www.bithound.io/github/alexindigo/stripbom)

> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (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.

## Why

Starting version 3.x of npmjs.com/strip-bom doesn't support node below v4,
and previous versions have security issues, so this brings all the happiness
to those who are still in supporting older versions of node business

## Install

```
$ npm install --save stripbom
```

## Usage

```js
const stripBom = require('stripbom');

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

## License

StripBOM is licensed under the MIT license.

---
_Source: https://npm.io/package/stripbom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
