{"library":"arg","type":"library","category":null,"description":"arg is a minimalist, unopinionated command-line argument parser for Node.js applications. It focuses on providing a straightforward API for defining and parsing CLI options, including type conversion (String, Number, Boolean, custom functions), flag counting (e.g., `--verbose -vvv`), and aliasing. The current stable version is 5.0.2, with recent patch releases addressing type fixes and dependency updates, while major releases are infrequent but cautious, aiming for minimal disruption. It prioritizes simplicity and direct mapping of arguments to values, leaving validation and requirement checking to the application layer. This makes it suitable for projects needing a lightweight parsing solution without bundled opinionated features common in larger CLI frameworks.","language":"javascript","status":"active","version":"5.0.2","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install arg","imports":["import arg from 'arg';","import arg from 'arg';\n// arg.COUNT","import arg from 'arg';\n// arg.flag(myHandler)","import { ArgError } from 'arg';"]},{"cmd":"yarn add arg","imports":[]},{"cmd":"pnpm add arg","imports":[]}],"homepage":null,"github":"https://github.com/vercel/arg","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/arg","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/arg/compatibility"}}