A CLI tool to check Node.js LTS and Latest versions
# Default: Show both LTS and Latest versions npx @light-planck/node-versions@latest # LTS: v22.17.0 # Latest: v24.3.0 # Show only LTS version npx @light-planck/node-versions@latest --lts # v22.17.0 # Show only Latest version npx @light-planck/node-versions@latest --latest # v24.3.0 # JSON output npx @light-planck/node-versions@latest --json # {"lts":"v22.17.0","latest":"v24.3.0"} # Show help npx @light-planck/node-versions@latest --help
--lts- Show only LTS version--latest- Show only Latest version--json- Output in JSON format--help- Show help--version- Show version
- Requires Node.js 22 or higher
- Implemented in TypeScript
- Fetches version information from Node.js official API
- Dependencies:
commander(CLI framework)
# Install globally npm install -g @light-planck/node-versions # Or use directly with npx npx @light-planck/node-versions@latest
# Install dependencies pnpm install # Build pnpm run build # Development mode (watch) pnpm run dev # Test locally node dist/index.js
MIT