Skip to content

alastairruhm/utfbom-remove

Repository files navigation

utfbom-remove

Build Status Build status codecov Go Walker Go Report Card codebeat badge

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:

$ ./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

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

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 and appveyor.yml.

About

detect and remove BOM in utf-8 encoding files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages