Toggl.NormalizeBomAndEol 3.0.0

dotnet tool install --global Toggl.NormalizeBomAndEol --version 3.0.0                
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 Toggl.NormalizeBomAndEol --version 3.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Toggl.NormalizeBomAndEol&version=3.0.0                
nuke :add-package Toggl.NormalizeBomAndEol --version 3.0.0                

Normalize BOM and EOL (.NET Tool)

This tool removes the BOM and makes the end of line characters consistent in one or more files.

⏬ Installation

Get the .NET tool from Nuget.

dotnet tool install -g Toggl.NormalizeBomAndEol

🤚🏻 Usage

📁 Sources

When it comes to the source, you can:

1️⃣ Normalize a set of explicitly named files:

dotnet normalize-bom-and-eol -f File1.cs File2.cs File3.cs File4.cs

2️⃣ Normalize multiple files whose paths are given through the input stream:

git diff --name-only --cached | dotnet normalize-bom-and-eol -i

3️⃣ Normalize a list of files whose paths are contained in a configuration file (one line per file):

For example, create a file containing the list of all .cs files in the current folder (and its subfolders).

dir *.cs /b /s > list.txt

Now that the list is available as list.txt file, run the normalization by using the -c switch.

dotnet normalize-bom-and-eol -c list.txt

🔚 End of line character

You can specify the end of line character by using the -e switch.

dotnet normalize-bom-and-eol -f File1.cs File2.cs -e CRLF

You can use LF, CR or CRLF as the switch value.

If you don't provide a value, the LF value is used as a default.

📚 Help

You can get more help by running:

dotnet normalize-bom-and-eol --help
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
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
3.0.0 303 12/31/2022
2.0.0 293 12/30/2022
1.0.0 292 12/29/2022