# vnu-jar

> Provides the Nu Html Checker «vnu.jar» file

Latest version **26.10.2** (published 2026-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install vnu-jar
pnpm add vnu-jar
yarn add vnu-jar
bun add vnu-jar
```

Provides the command `vnu`.

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; large bundle.

## Facts

| | |
|---|---|
| Version | 26.10.2 |
| Published | 2026-10-02 |
| First published | 2016-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/vnu-jar) |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 31 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1988 |
| Author | sideshowbarker@gmail.com |
| Maintainers | nschonni, arttse, sideshowbarker |
| Keywords | checker, html, lint, linter, jar, nu, validator, vnu, w3c |

## Links

- npm: https://www.npmjs.com/package/vnu-jar
- Repository: https://github.com/validator/validator
- Homepage: https://github.com/validator/validator#readme
- Issues: https://github.com/validator/validator/issues
- npm.io page: https://npm.io/package/vnu-jar

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 26.10.2 (latest) — 2026-10-02
- 21.7.12 (next) — 2021-07-11
- 26.9.30 — 2026-09-30
- 26.9.27 — 2026-09-27
- 26.9.16 — 2026-09-16
- 26.9.7 — 2026-09-07
- 26.9.5 — 2026-09-05
- 26.8.30 — 2026-08-30
- 26.8.29 — 2026-08-29
- 26.8.21 — 2026-08-21
- 26.8.20 — 2026-08-20
- 26.8.19 — 2026-08-19
- 26.8.15 — 2026-08-15
- 26.8.6 — 2026-08-06
- 26.8.4 — 2026-08-04
- … 206 more at https://npm.io/package/vnu-jar/versions

## README

# vnu-jar: Check HTML from JavaScript

`vnu-jar` lets you use the Nu Html Checker (vnu) from within JavaScript code — to catch unintended mistakes in HTML, CSS, and SVG content.

## Install latest release version

```sh
npm install --save vnu-jar
```

## Example

Here’s an example of how to create a simple `vnu-check.js` program that uses the `vnu-jar` package to invoke the Nu Html Checker (vnu), pass it whatever arguments the user specifies, and then emit the checker output.

```js
'use strict';
const { vnu } = require('vnu-jar');
(async () => {
    try {
        console.log(await vnu.check(process.argv.slice(2)));
    } catch (err) {
        console.error(err.message.trim());
        process.exit(1);
    }
})();
```

## Command-line usage

When installed or run via `npx`, the package also provides a `vnu` command that causes the `vnu.jar` program to be invoked and run with whatever arguments you specify:

```sh
npx vnu --verbose file1.html file2.html
npx vnu --help
```

## Java auto-installation

This npm package includes the `vnu.jar` Java program — so to use the package, users will additionally need a Java environment that provides a `java` command.

For that reason, the package runs a `postinstall` script which — if it finds no `java` command in the user’s environment during install — will then _automatically_ install a (Node.js-local) Java runtime environment, in `node_modules/.cache/vnu-jar/java/`).

---
_Source: https://npm.io/package/vnu-jar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
