Is there an API/command available so I can check what is the available latest version of a rock? Similar to say npm info xxx.
The best I can find is luarocks search xxx; was hoping there would be a better endpoint that provides a better-structured response than a string.
Update
Also, using luarocks search xxx does not do an exact match. For example, running luarocks search multipart returns 4 results because of multipart matches for names. But I do want to do an exact search; there is a package called multipart. How is that possible?
luarocks show (described here) has a --mversion flag that will return the current package version.
Otherwise, luarocks search is, as you already know, your option for querying what rocks (and their versions) are available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With