tj / commander.js

node.js command-line interfaces made easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use the ESM module to import and export ?

chen-ziwen opened this issue · comments

commented

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.