parse-help is a JavaScript utility for programmatically parsing the help output of command-line interfaces, extracting structured information about their flags, options, and aliases. It provides a structured object representation of CLI options, making it easier to analyze or process them within other tools. The current stable version is 2.0.0. The package is maintained by Sindre Sorhus, known for a high volume of small, focused utility packages, typically implying a stable but not necessarily rapid release cadence unless new features or breaking changes warrant it. A key differentiator is its focus specifically on parsing *help output* rather than building a CLI from scratch or parsing `argv` directly, making it useful for introspection or documentation generation from existing CLIs.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Since v2.0.0, parse-help is a pure ESM module and must be imported using ES modules syntax. CommonJS `require()` is no longer supported.
Demonstrates how to import and use `parseHelp` to process a sample CLI help string and output the structured flags and aliases.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.