{"library":"clap","type":"library","category":null,"description":"Clap.js is a robust library for Node.js designed to simplify the creation of command-line interfaces (CLIs). It provides a fluent API for defining commands, options, and arguments, supporting advanced features like argument coercion, completion suggestions, and sub-commands. The library aims to facilitate both simple CLI tools and complex applications with deep command hierarchies. Inspired by Commander.js, Clap.js focuses on ease of use and flexibility. The current stable version is 3.1.1, with recent releases addressing regressions and refining API signatures. Since version 3.0.0, it supports both ESM and CommonJS (dual module) and targets Node.js versions `^12.20.0`, `^14.13.0`, and `>=15.0.0`. It offers a structured approach to argv processing and context management for developers building intricate command-line tools.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript","cli","command","option","argument","completion"],"last_verified":"Wed May 27","install":[{"cmd":"npm install clap","imports":["import { command } from 'clap';","import clap from 'clap';\n// or\nconst cli = require('clap');","import { Command } from 'clap';"]},{"cmd":"yarn add clap","imports":[]},{"cmd":"pnpm add clap","imports":[]}],"homepage":null,"github":"https://github.com/lahmatiy/clap","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/clap","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/clap/compatibility"}}