Reputation: 36299
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?
Upvotes: 3
Views: 1520
Reputation: 1671
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.
Upvotes: 1