utfbom-remove
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
$ ./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.0
AUTHOR:
alastairruhm <[email protected]>
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
# dry-run mode
$ ./utfbom-remove --path=/path/to/directory --check-only
# repalce with bom free header
$ ./utfbom-remove --path=/path/to/directory
windows
# 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.