Skip to the cargo

hk util fix-byte-order-marker ​

  • How to hail it: hk util fix-byte-order-marker <FILES>…
  • Effect: modifies state (it touches, as well as looks)

Removes the UTF-8 byte order marker (BOM), that unbidden passenger at the very start of a file.

Cargo it takes ​

  • <FILES>… — The files to cut the BOM from

Flags to fly ​

  • -h --help — Print help, for when ye've lost yer bearings

Tales from the deck ​

Mind ye: this call changes the files ye hand it, removing a UTF-8 BOM.

sh
hk util fix-byte-order-marker README.md

Further charts ​

Built-in linters and utilities: the standing crew · Troubleshooting: the ship's log · All the bosun's calls

MIT LicenseCopyright © 2026jdx.dev