Crates.io | format-bom |
lib.rs | format-bom |
version | 0.0.4 |
source | src |
created_at | 2023-07-16 08:51:01.798347 |
updated_at | 2023-08-13 01:49:42.538891 |
description | A tool for handling BOM mark from UTF-8 files |
homepage | |
repository | https://github.com/DosangGu/format-bom |
max_upload_size | |
id | 917686 |
size | 36,890 |
utf-8 BOM formatter written in Rust
This tool provides with cargo install
command.
cargo install format-bom
format-bom
You can check help message by format-bom --help
.
format-bom --add
There is remove
add
add-strict
mode for format-bom.
It uses remove
mode by default.
remove
mode removes BOM from UTF-8 files.
add
mode adds BOM to UTF-8 files except for files that has following extensions.
add-strict
mode adds BOM to all UTF-8 files.
You can specify extensions of files to add or remove BOM manually by --add-bom
or --remove-bom
option.
format-bom --add-bom cs,csproj,text
format-bom --add --remove-bom xaml