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

The current theme is "Light mode".

vnux - Nu Html Checker CLIfor macOS

A CLI wrapper for Nu Html Checker (vnu).Installs Nu Html Checker and provides features such as starting/stopping vnu and validating HTML fragments.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/vnux/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 ~/.vnux
  3. Creates the ~/.local/bin/vnux command
  4. Adds ~/.local/bin to your PATH in ~/.zshenv

Commands

Server

CommandDescription

vnux

Alias for vnux start

vnux start

Starts the Nu Html Checker on http://localhost:8888 and opens it in your browser

vnux start --port <PORT>

Starts the Nu Html Checker on a specific port and opens it in your browser (e.g. vnux start --port 9090)

vnux serve

Starts the Nu Html Checker without opening the browser

vnux serve --port <PORT>

Starts the Nu Html Checker on a specific port (e.g. vnux serve --port 9090)

vnux stop

Stops the running Nu Html Checker process

Validation

CommandDescription

vnux check <value>

Auto-detects and validates the given value

vnux check --file <file>

Validates an HTML file

vnux check --url <url>

Validates a URL

vnux check --html '<html>'

Validates a full HTML string

vnux check --fragment '<p>...</p>'

Validates an HTML fragment (auto-wrapped in a full document)

Utilities

CommandDescription

vnux update

Updates vnu.jar and the vnux command to the latest version

vnux uninstall

Removes vnux and related files

vnux --version

Shows the vnux version and the release date of the installed vnu.jar

vnux --help

Shows usage information

* Create a bookmarklet for Nu Html Checker

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

𝕏Share