On Mon, May 28, 2012 at 12:22 PM, Alan Hoffmeister
<alanhoffmeis...@gmail.com> wrote:
> Hello there!
>
> Is there a clean way for getting the last stable version of Node.js?
> I would really like to GET http://nodejs.org/versions and retrieve a list of
> versions like:
>
> {
>     "latest-stable" : "0.6.18",
>     "latest-unstable" : "0.7.9",
>     "versions" : [
>         "0.7.9",
>         "0.7.8",
>         "etc..."
>     ]
> }
>
> The best way I have found so far is $('.version').text() at
> http://nodejs.org DOM's, but that's ugly as hell :P

You can get a list of tags using the Github API:

http://github.com/api/v2/json/repos/show/joyent/node/tags

That doesn't include the specification of which version is the latest,
but deriving that from the keys should be pretty straightforward.

--
Martin Cooper


> --
> Att,
> Alan Hoffmeister
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to