Install
Hunk runs on macOS, Linux, and Windows. npm installs require Node.js 18 or newer; Homebrew and Nix installs are self-contained binaries. Git is recommended for the most common review workflows.
Install the published hunkdiff package globally:
npm install --global hunkdiffhunk --versionThe package exposes both hunk and hunkdiff; the docs use hunk.
Homebrew
Section titled “Homebrew”brew install hunkhunk --versionIf you previously used the old modem-dev/tap formula, remove it before installing from Homebrew core:
brew uninstall modem-dev/tap/hunkbrew install hunkThe repository exports a default package from flake.nix. From a clone of Hunk:
nix build./result/bin/hunk --versionSee the repository's nix/README.md for Home Manager and development-shell details.
Verify the install
Section titled “Verify the install”hunk --helpYou should see Usage: hunk <command> [options]. If the shell cannot find Hunk, ensure your global npm or Homebrew binary directory is on PATH, then open a new shell.