Skip to content
Myr

esm.mjs

This file

Path

esm.mjs

16 lines · 309 bytes · JavaScript

Last changed by

Export InvalidOptionArgumentError in esm (#1756)Caleb Everettbefore adoption3ae30a2

History of this file

Take it

Add support for named imports in ESM (#1440)John Geebefore adoption37825b3

lines 1–3why, one step back
1import commander from './index.js';
23// wrapper to provide named exports for ESM.

Factory routine to create a new unattached argument (#1497)Sergei Vizelbefore adoption387b6fc

lines 4–9why, one step back
4export const {
5 program,6 createCommand,7 createArgument,8 createOption,9 CommanderError,

Extend .argument() to add default value and custom parse for command-argument (#1508)John Geebefore adoptionf99d6fa

line 10why, one step back
10 InvalidArgumentError,

Export InvalidOptionArgumentError in esm (#1756)Caleb Everettbefore adoption3ae30a2

line 11why, one step back
11 InvalidOptionArgumentError, // deprecated old name

Factory routine to create a new unattached argument (#1497)Sergei Vizelbefore adoption387b6fc

lines 12–16why, one step back
12 Command,
13 Argument,14 Option,15 Help16} = commander;