detect and remove BOM in utf-8 encoding files
- remove BOM in utf8 encoding files
- dry-run mode
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:
$ ./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 <alastairruhm@gmail.com>
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
# dry-run mode
$ ./utfbom-remove --path=/path/to/directory --check-only
# repalce with bom free header
$ ./utfbom-remove --path=/path/to/directory
# dry-run mode
$ ./utfbom-remove.exe --path=/path/to/directory --check-only
# repalce with bom free header
$ ./utfbom-remove.exe --path=/path/to/directory
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 and appveyor.yml.