BomSweeper is a command-line tool that finds the files starting with a UTF-8 Byte Order Mark (BOM) in the directory tree and removes a BOM from those files.

Get started

BomSweeper is available as the NuGet-logo NuGet package, so it can be installed as follows:

dotnet tool install -g BomSweeper.GlobalTool

Example

bomsweeper '**/*.cs' '**/*.csproj'

BomSweeper finds .cs and .csproj files starting with a UTF-8 BOM in the current directory and subdirectories. BomSweeper exits 0 if no file is found, and >0 otherwise.

bomsweeper -R '**/*.cs'

BomSweeper finds .cs files in the current directory and subdirectories, and remove a UTF-8 BOM from the files if any. BomSweeper exits 0, and >0 if an error occurs.

Documents

How to contribute

Please send us pull requests or issues from the GitHub icon GitHub repository.