Skip to content

DosangGu/format-bom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

format-bom

utf-8 BOM formatter written in Rust

Installation

This tool provides with cargo install command.

cargo install format-bom

Usage

format-bom 

You can check help message by format-bom --help.

Format Mode

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.

  • html
  • css
  • svg
  • js
  • ts
  • md
  • json
  • toml
  • yaml
  • csv
  • xml
  • ini
  • conf
  • cfg
  • sh
  • bat
  • ps1

add-strict mode adds BOM to all UTF-8 files.

Handling files with specific extensions

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

About

utf-8 BOM formatter written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages