commander.js icon indicating copy to clipboard operation
commander.js copied to clipboard

how to use the ESM module to import and export ?

Open chen-ziwen opened this issue 10 months ago • 1 comments

How to use the ESM module to import and export

chen-ziwen avatar Apr 28 '24 07:04 chen-ziwen

Do you want to import Commander from esm? This is covered in the README:

// ECMAScript (.mjs)
import { Command } from 'commander';
const program = new Command();

shadowspawn avatar Apr 28 '24 08:04 shadowspawn

An answer was provided, and no further activity in a month. Closing this as resolved.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

shadowspawn avatar May 22 '24 07:05 shadowspawn