{"library":"cli-vir","type":"library","category":null,"description":"cli-vir is a command-line interface (CLI) argument parser for Node.js, built with a strong emphasis on type safety for parsed arguments. The current stable version is 1.0.3, indicating active development with frequent patch releases addressing minor issues and dependency updates. Key differentiators include its flexible handling of flag formats (single/double dashes, short/long forms), support for case-insensitive flag names across camelCase, kebab-case, and snake_case variants, and robust options to restrict argument values to specific sets or convert truthy/falsy strings to booleans. It provides comprehensive type inference for parsed values and automatically generates man-page-style documentation for parsing failures. This library streamlines CLI development by abstracting away common parsing complexities and enhancing developer experience with strong type guarantees. It requires Node.js version 22 or higher.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","cli","args","parser","type-safe","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-vir","imports":["import { parseArgs } from 'cli-vir';","import { FlagRequirement } from 'cli-vir';","import type { ParsedArgs } from 'cli-vir';"]},{"cmd":"yarn add cli-vir","imports":[]},{"cmd":"pnpm add cli-vir","imports":[]}],"homepage":null,"github":"https://github.com/electrovir/cli-vir","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-vir","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cli-vir/compatibility"}}