https://github.com/alastairruhm/utfbom-remove
detect and remove BOM in utf-8 encoding files
https://github.com/alastairruhm/utfbom-remove
bom
Last synced: 3 months ago
JSON representation
detect and remove BOM in utf-8 encoding files
- Host: GitHub
- URL: https://github.com/alastairruhm/utfbom-remove
- Owner: alastairruhm
- License: mit
- Created: 2017-08-22T01:22:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-09-10T20:00:12.000Z (almost 4 years ago)
- Last Synced: 2025-12-17T12:16:50.223Z (6 months ago)
- Topics: bom
- Language: Go
- Homepage:
- Size: 131 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# utfbom-remove
[](https://travis-ci.org/alastairruhm/utfbom-remove)
[](https://ci.appveyor.com/project/alastairruhm/utfbom-remove)
[](https://codecov.io/gh/alastairruhm/utfbom-remove)
[](https://gowalker.org/github.com/alastairruhm/utfbom-remove)
[](https://goreportcard.com/report/github.com/alastairruhm/utfbom-remove)
[](https://codebeat.co/projects/github-com-alastairruhm-utfbom-remove-master)
detect and remove BOM in utf-8 encoding files
## feature
* remove BOM in utf8 encoding files
* dry-run mode
## download and run
https://github.com/alastairruhm/utfbom-remove/releases
Download binary according to your system and on macOS, you can install as
```
brew tap alastairruhm/tap && brew install utfbom-remove
```
usage:
```bash
$ ./utfbom-remove -h
NAME:
utfbom-remove - detect and remove BOM in utf-8 encoding files
USAGE:
main [global options] command [command options] [arguments...]
VERSION:
v1.0.2
AUTHOR:
alastairruhm
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--check-only dry-run mode
--path value the path to scan (default: ".")
--help, -h show help
--version, -v print the version
COPYRIGHT:
(c) 2017 alastairruhm
```
### macOS and linux
```bash
# dry-run mode
$ ./utfbom-remove --path=/path/to/directory --check-only
# repalce with bom free header
$ ./utfbom-remove --path=/path/to/directory
```
### windows
```bash
# dry-run mode
$ ./utfbom-remove.exe --path=/path/to/directory --check-only
# repalce with bom free header
$ ./utfbom-remove.exe --path=/path/to/directory
```
## Supported platforms
utfbom-remove is tested against multiple versions of Go on Linux, and against the latest released version of Go on OS X and Windows. For full details, see [.travis.yml](./.travis.yml) and [appveyor.yml](./appveyor.yml).