the complete solution for node.js command-line programs. Use when: Declaring _program_ variable; Command-arguments; Life cycle hooks. NOT for: web browser UI rendering; server-side HTML generation.
Install
npx skillscat add yusenthebot/skills-pack/commander Install via the SkillsCat registry.
SKILL.md
commander
Overview
the complete solution for node.js command-line programs. The complete solution for node.js command-line interfaces.
Installation
npm install commanderCore API / Usage
import commander from 'commander';
// See official documentation for complete API reference
// https://www.npmjs.com/package/commanderCommon Patterns
Key Features
- Commander.js
- Quick Start
- Declaring program variable
- Variadic option
Configuration
See the official documentation for configuration options and advanced settings.
Tips & Gotchas
- Current version: 14.0.3. Check the changelog when upgrading across major versions.
- Refer to the official npm page for edge cases and advanced configuration.