bom 0.1.1

dotnet tool install --global bom --version 0.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local bom --version 0.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=bom&version=0.1.1
                    
nuke :add-package bom --version 0.1.1
                    

bom

bom is a small .NET tool for finding and resetting UTF-8 byte order mark (BOM) changes in Git repositories.

Usage

Check for BOM changes in the current Git working tree:

dnx bom check worktree

Reset BOM changes in the current Git working tree:

dnx bom reset worktree

Check for BOM changes introduced by the current GitHub pull request or branch:

dnx bom check pr

Reset BOM changes introduced by the current GitHub pull request or branch:

dnx bom reset pr

The pr target uses the GitHub CLI to detect the current pull request. If no pull request exists yet, it falls back to comparing the current branch against an inferred base branch. The base branch is inferred from branch.<branch>.gh-merge-base, the remote default branch, or common default branch names. The worktree target uses Git status in the current repository.

Behavior

bom scopes checks and resets to the directory where the command is run. Reset operations only change the leading UTF-8 BOM state of matching files; other content edits in the same file are preserved.

check exits with code 1 when BOM changes are found and 0 when none are found.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.1 101 5/14/2026
0.1.0 110 5/9/2026