minimistjs / minimist

parse argument options
MIT License
515 stars 30 forks source link

[Enhancement] Need ESM support #58

Closed Tetrax-10 closed 6 months ago

Tetrax-10 commented 6 months ago

Thanks for this awesome light weight argv parser. Just discovered it but unfortunately I can't use this in my project as this package doesn't support ESM. It would be nice if ESM import is supported. Thanks.

This doesn't work

import minimist from "minimist"

const argv = minimist(process.argv.slice(2))
ljharb commented 6 months ago

What doesn't work about it? node can import CJS just fine.

Tetrax-10 commented 6 months ago

Am so sorry it works fine now, I dont know why it didn't work last time prob my typescript... am tripin... nvm

Thanks for the package and quick reply ❤️.