A full-featured command-line application toolkit for Node.js (v1.0.1, latest, infrequently updated). Provides argument parsing, plugin support, colored output, progress bars, spinners, auto-completion, and stdin helpers. Differentiates from yargs and commander by its inclusive feature set and mature legacy API.
npm install cliVerified import paths — ran on the pinned version, not inferred.
Shows parsing CLI arguments with descriptions and defaults, then processing stdin lines and using parsed options.
Use require('cli') instead of import.Assign to a variable and use its methods.
Consider migrating to a maintained library.
Test on target shells.
const cli = require('cli'); then cli.withStdin(...)Run 'npm install cli' and ensure it is in node_modules.
Add 'const cli = require('cli');' at the top.No dependency data recorded yet.