Skip to content

hk util mixed-line-ending

  • Usage: hk util mixed-line-ending [-d --diff] [-f --fix] <FILES>…
  • Effect: modifies state

Detect and fix mixed line endings

Arguments

  • <FILES>… — Files to check or fix

Flags

  • -d --diff — Output a diff of the change. Cannot use with fix.
  • -f --fix — Fix mixed line endings by normalizing to LF
  • -h --help — Print help

Examples

Check for mixed line endings, or normalize them to LF.

sh
hk util mixed-line-ending README.md
hk util mixed-line-ending --fix README.md

Learn more

Built-in linters and utilities · Troubleshooting · All commands

MIT LicenseCopyright © 2026jdx.dev