unjs / nypm

🌈 Unified Package Manager for Node.js and Bun
MIT License
471 stars 17 forks source link

Introducing `isInstalled` utility #99

Open adhamfarrag opened 11 months ago

adhamfarrag commented 11 months ago

Describe the feature

Introducing isInstalled to check if a package is installed or not.

Additional information

pi0 commented 11 months ago

Related to #7. There was an initial PR but i wanted to iterate overit together with local+remote checks. I think we can make this utility on top of that.

adhamfarrag commented 11 months ago

@pi0 What's missing from the initial PR? What should be returned to users when getPackageInfo('nypm') ?

pi0 commented 11 months ago

(it is something i need to investigate honestly before suggesting an API so i guess have to finally pick it myself in order to iterate faster, ideas welcome in meantime)