unjs / nypm

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

`getPackageInfo` #7

Open pi0 opened 1 year ago

pi0 commented 1 year ago

Query package info from npm registry (latest, tags, etc) in addition to locally installed version

gnugomez commented 4 months ago

Hi @pi0, since this seams to be an old topic, but it has recent mentions, do you plan to implement that in a short time frame?

I'm just looking to something similar as described here #99 as I want to ask the users if they want to install dependencies before installing them, so the ensureDependencyInstalled(name, options) does not totally fit my needs. I think it would be a great idea to expose the doesPackageExist util as well, but probably will become superseded by this getPackageInfo at some point.