Installation
Install Nudo tools via npm, pnpm, or yarn.
Prerequisites
- Run the published CLI: Node.js >= 20 (
engineson all published packages) - Develop this repo: Node.js >= 20 (CI uses Node 24)
Packages ship compiled ESM in dist/ (files: ["dist"]), not TypeScript source.
CLI
# thin shell (published as `nudojs`; installs the `nudo` command)
npm install -g nudojs
# or the full CLI package
npm install @nudojs/cli
# or
pnpm add @nudojs/cli
# or
yarn add @nudojs/cli
Then run type inference:
npx nudojs infer path/to/file.js
# after a global install, the command is simply `nudo`
VS Code Extension
Install the nudo-vscode extension for inline type hints and diagnostics:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for nudo-vscode (or "Nudo")
- Click Install
You can also install from the command line:
code --install-extension wmzy.nudo-vscode
Vite Plugin
Use vite-plugin-nudo to run Nudo during development or build:
npm install vite-plugin-nudo --save-dev
In vite.config.js:
import { defineConfig } from "vite";
import nudo from "vite-plugin-nudo";
export default defineConfig({
plugins: [nudo()],
});
During the build the plugin analyzes files that pass nudo.analysis.mode (shipped default "exports": @nudo:*, export, or a sidecar) and reports Nudo diagnostics — evaluator issues plus refinement-gate violations (nudo:constraint-violated, nudo:assign-mismatch, nudo:arg-structure) — as build warnings, or as errors with failOnError. See the Vite plugin guide.