uga.dev - A Front-end Engineer's shed

The current theme is "Light mode".

Nu Html Checker Installer for macOS

A simple one-command script to install and run Nu Html Checker (vnu) on macOS. Don't have Java? No problem — it'll be installed automatically (Temurin).

※ 日本語はこちら

Run this in your terminal

Install command
curl -fsSL https://github.com/hiroya-uga/vnu-installer/releases/latest/download/install.sh | zsh

What the script does

  1. Installs Temurin JDK via Homebrew if you don't have Java yet
  2. Downloads vnu.jar to ~/.vnu
  3. Creates the ~/.local/bin/vnu command
  4. Adds ~/.local/bin to your PATH in ~/.zshenv

Commands

Server

vnuAlias for vnu start

vnu startStarts the checker on http://localhost:8888 and opens it in your browser

vnu start --port <PORT>Starts the checker on a specific port and opens it in your browser (e.g. vnu start --port 9090)

vnu serveStarts the checker without opening the browser

vnu serve --port <PORT>Starts the checker on a specific port (e.g. vnu serve --port 9090)

vnu stopStops the running vnu process

Validation

vnu check <value>Auto-detection: pass a URL, <!doctype...> string, <p>...</p>, or a file path directly without flags

vnu check --file <file>Validates an HTML file

vnu check --url <url>Validates a URL

vnu check --html '<html>'Validates a full HTML string

vnu check --fragment '<p>...</p>'Validates an HTML fragment (auto-wrapped in a full document)

Utilities

vnu updateUpdates vnu.jar to the latest version

vnu uninstallRemoves vnu and related files

vnu --versionShows the release date of the installed vnu.jar

vnu --helpShows usage information

* Create a bookmarklet for Nu Html Checker

Example
vnu check --fragment '<p>Hello, world!</p>'