volta
volta copied to clipboard
Command to show which versions are available in the remote repo
Suggested in #569: A command, analogous to n ls-remote that will show which versions of a given tool are available in the remote repository. We can likely take a version parameter as well, and resolve all matches (up to some display limit), so that users can see what is available for a given version range:
$ volta resolve node@lts
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
This feels like a pretty important feature to have, or is there a good workaround already that people are using?
This feels like a pretty important feature to have, or is there a good workaround already that people are using?
I use npx n lsr or npx n lsr engine. 😅
For Node, at least, It looks like the JSON versions index is already being cached to $VOLTA_HOME/cache/node/index.json. Is this cache only updated when a version of node is requested to be fetched and that version doesn't exist in the cache?
It's obvious, but, we already have public api's how:
https://api.github.com/repos/npm/cli/tags https://api.github.com/repos/npm/cli/releases https://registry.npmjs.org/npm
Maybe could be used for remote versions for tools. (i really dont know if the problem is where finding, but it's an idea)
I want it too.