Skip to the cargo

hk util check-byte-order-marker ​

  • How to hail it: hk util check-byte-order-marker [-d --diff] <FILES>…
  • Effect: read-only (looks, never touches)

Checks the cargo for a UTF-8 byte order marker (BOM).

Cargo it takes ​

  • <FILES>… — The files to check

Flags to fly ​

  • -d --diff — Write out a diff of the BOM removal instead of the file name
  • -h --help — Print help, for when ye've lost yer bearings

Tales from the deck ​

Look for a byte order marker and leave the file be.

sh
hk util check-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