luarocks-site icon indicating copy to clipboard operation
luarocks-site copied to clipboard

JSON API

Open andrew opened this issue 9 years ago • 2 comments

Is there a way of reading out the meta data about each module as JSON or some other machine readable format from the site?

I'd love to add LuaRocks support to http://libraries.io/, if there's an easy way to read/convert the rockspec files without having to use Lua I could add it much faster.

andrew avatar Mar 21 '15 20:03 andrew

Both the manifest and rockspecs are machine readable as they are just Lua code. I wouldn't mind adding JSON endpoints for the objects on the site, I just don't think I'll have time to do it anytime soon.

leafo avatar Mar 21 '15 20:03 leafo

Thanks @leafo, if I get some free time I'll attempt to learn a little Lua and send a pull request.

andrew avatar Mar 21 '15 20:03 andrew