Programmatically get the latest version of the Google Hosted Library?

Does anyone know if there is a way to programmatically get the latest version of the google hosted library?

The reason I am asking this is to use it in a template generator. IMHO it's a good idea to load the latest library the moment the template is applied to the project, and it's a little annoying to have to update the repo just because the library has released a new version.

Don't get me wrong, this doesn't mean that you always use the latter while your application is running. This meant always providing you with the latest version available during your project.

Thank!:)

+3


source to share


2 answers


If you are using cdnjs: http://cdnjs.com/packages.json



Also available via HTTPS: https://cdnjs.com/packages.json

+2


source


I couldn't find a suitable solution, so I went there and built it. Could you please let CDN.io go and share your thoughts?

Purpose? Always have the latest link to the library hosted on the CDN programmatically.

Why might this be useful? Ie, for use in template generators. This way, we can always be sure that the user gets the latest version of their CDNed library, and we no longer have to worry about updating the helpers.



Why was I even worried? ... As CDN services do not offer APIs to access their list of hosted libraries!

What if you don't want to use the web service? No problem, just use it as a library.

Thank you! :) Darío

+1


source







All Articles