dreamopt Command-Line Parser

JSON →
library 0.8.0 ·javascript abandoned
verified May 27, 2026

dreamopt is a JavaScript library designed for parsing command-line arguments, offering a syntax aimed at readability and ease of use. It supports a comprehensive range of features including mandatory and optional arguments, options with values, default values, automatic help generation, and the ability to define commands, subcommands, and nested subcommands. It also includes automatic type coercion for arguments (e.g., to numbers) and allows for custom tags and coercion rules. The library's core differentiator was its declarative, array-based specification format for defining CLI structures. The current stable version, `0.8.0`, was published in July 2012. The package is effectively abandoned, with its last commit over a decade ago. Despite its abandonment, npm download statistics show surprisingly high usage, which may be attributed to it being a transitive dependency in other legacy projects or due to automated processes, rather than active new development.

total hits 14
actors 7 distinct systems
last hit 20h ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇸🇬 Singapore · 🇩🇪 Germany