sindresorhus / meow

🐈 CLI app helper
MIT License
3.54k stars 151 forks source link

Allow user to pass in package URL for package reading #182

Closed LitoMore closed 3 years ago

LitoMore commented 3 years ago

Related to #176

Changes

Spec

LitoMore commented 3 years ago

We already have a pkg option for users to pass in their package object, what about let users read the package at their side, then pass it to our package?

sindresorhus commented 3 years ago

I think we should accept import.meta, not import.meta.url. import.meta might get useful properties we might want to use in the future. It's more future proof this way. We can just call the option importMeta and make it required.