# cli-bomstrip

> Strips BOM (byte order mark) from files encoded as UTF8-BOM, saving them back in plain UTF8 format.

Latest version **0.0.2** (published 2018-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install cli-bomstrip
pnpm add cli-bomstrip
yarn add cli-bomstrip
bun add cli-bomstrip
```

Provides the command `bomstrip`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-07-25 |
| First published | 2018-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Smith |
| Maintainers | tsmithr7 |
| Keywords | bom, utf8 |

## Links

- npm: https://www.npmjs.com/package/cli-bomstrip
- npm.io page: https://npm.io/package/cli-bomstrip

## Dependencies (4)

- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [@types/fs-extra](https://npm.io/package/@types/fs-extra.md) ^5.0.4
- [@types/minimist](https://npm.io/package/@types/minimist.md) ^1.2.0

## Recent versions

- 0.0.2 (latest) — 2018-07-25
- 0.0.1 — 2018-07-25

## README

# cli-bomstrip
Strips BOM (byte order mark) from files encoded as UTF8-BOM, saving them back in plain UTF8 format. Can batch convert multiple files at once, or even entire directories (including sub-directories).

## Install

```
$ npm install -g cli-bomstrip
```

## Usage

```
$ bomstrip <path1 path2 ...> [-o outputPath] [--log]
```

## Examples

```
$ bomstrip
$ bomstrip *.json
$ bomstrip file1.txt file2.txt
$ bomstrip inputDir -o outputDir
$ bomstrip . --log
```

## Options

If no options or paths are passed, will operate on all files within the cwd.

_path[n]_: Paths to files or directories to remove BOM from. Files will be edited in place unless -o flag is used. If directory is passed, every file in the directory is considered (including all sub-directories recursively). Can use wildcards depennding on OS (for example _bomstrip *.json_).

_-o outputPath_: Instead of editing files in-place, write them to this path. Will preserve directory structure for nested sub-directories.

_--log_: Log the path of every modified file.

## License

MIT

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