Friday, 5 May 2017

Get npm version tag using client-side javascript

I was wondering if there is any way to get the latest version tag of a npm package, using client-side javascript. I looked around for APIs and the like but I couldn't find anything that isn't deprecated.

However, I am pretty certain that it's possible to do, as shileds.io does exactly that for multiple packages.

What I want to do is get the latest version tag as-is (e.g. v1.2.5) in either string or JSON format.



via Angelos Chalaris

No comments:

Post a Comment