commander.js
commander.js copied to clipboard
how to use the ESM module to import and export ?
How to use the ESM module to import and export
Do you want to import Commander from esm? This is covered in the README:
// ECMAScript (.mjs)
import { Command } from 'commander';
const program = new Command();
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.