wzrd.in icon indicating copy to clipboard operation
wzrd.in copied to clipboard

API for getting list of versions for a module

Open max-mapper opened this issue 12 years ago • 3 comments

GET /modulename

=>

{"name": "modulename, "versions": ["0.0.1", "0.0.2"]}

versions[versions.length - 1] should be equivalent to @latest

max-mapper avatar Jul 08 '13 21:07 max-mapper

One suggestion is to just use npm for that, since this would basically be proxying to npm anyway.

jfhbrook avatar Jul 10 '13 09:07 jfhbrook

It occurs to me that npm might not be CORS-enabled like browserify-cdn is. That, and there's all kinds of other information this could support (such as cache information).

jfhbrook avatar Jul 11 '13 01:07 jfhbrook

:+1: for list of versions

anodynos avatar Jan 27 '14 14:01 anodynos