{"library":"opts","type":"library","category":null,"description":"`opts` is a lightweight command-line argument parser for Node.js, currently at version 2.0.2. It provides functionalities for parsing short (`-s`) and long (`--long`) options, as well as positional arguments, and automatically generates help text. A key differentiator is its minimal footprint and zero external dependencies, designed to work as a standalone JavaScript file without requiring NPM or other package managers. This makes it suitable for projects prioritizing simplicity and a small bundle size. While primarily a plain JavaScript library, it ships with TypeScript definitions for enhanced development experience. `opts` processes arguments through callbacks associated with each option, rather than returning a structured object of parsed values. Its stable nature suggests a focus on maintenance, offering a robust solution for basic to moderate CLI parsing needs.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","command line parser","opts","args","help text","typescript"],"install":[{"cmd":"npm install opts","imports":["import { parse } from 'opts';","import { Option } from 'opts';","import * as opts from 'opts';"]},{"cmd":"yarn add opts","imports":[]},{"cmd":"pnpm add opts","imports":[]}],"homepage":"http://khtdr.com/opts","github":"https://github.com/khtdr/opts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/opts","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/opts/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}