CDNUpdates
:link: A Sublime Text 3+ plugin to check for CDN updates in your Web sources
Details
Installs
- Total 461
- Win 335
- Mac 55
- Linux 71
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CDNUpdates
A Sublime Text 3+ plugin to check for CDN updates in your Web sources
Introduction
Tired of manually checking if your CDN (Content Delivery Network) are up to date in your web pages ? Yeah, so was I… :confused:
Below is a sum-up of what this Sublime Text 3+ plugin does (well) to help you deal about this :
- Gathers links present in your current sheet
- Compares them to a list containing known public CDN providers
- Figures out a way (with providers' API or with GitHub one) to retrieve the latest “version” of each resource, and compares it with the one you are currently using
- Displays some icons in the gutter, to inform you of the results
- Displays a Phantom object with the latest version available you should be using
- Bonus : Shows up a warning for resources not loaded over HTTPS :+1:
Of course, when this plugin does not use the API of the CDN provider, it may inform you of a newer published version, possibly not available from your provider (maybe it's time to opt out from this privacy mess ? :wink:).
Installation
With Package Control
- Open your command palette and type in :
Package Control: Install Package
- Browse the list or search for
CDNUpdates
- Press
Enter
and you're done !
Package Control dedicated page here.
Manually
- Move into Sublime Text packages folder (usually
$HOME/.config/sublime-text-3/Packages/
or%AppData%\Sublime Text 3\Packages\
) - Clone this repository there :
$ git clone https://github.com/HorlogeSkynet/CDNUpdates.git
- Restart Sublime Text and… :tada:
Usage
Open your command palette and type in :
CDNUpdates
Right click on your file :
CDNUpdates > ...
Tools > Packages > CDNUpdates > ...
Settings
Most of the CDN providers don't provide any API for their service, so it would be very tricky to retrieve latest version available directly from them.
Unless for https://cdnjs.com/, this plugin is actually based on the GitHub API to fetch the latest existing Git tag directly from the repositories. Its name
is compared afterwards with the CDN version present in your sources.
If you have many many CDNs in your sheets (or if you want to contribute to this project 😜), you'll surely need to set a GitHub API token to avoid being blocked by the rate limit.
You can generate one here (public_repo
scope), and paste in under the plugin preferences (accessible from CDNUpdates
's Sublime menu).
CDN Providers currently handled
- [X] https://cdnjs.com/
- [X] https://bootstrapcdn.com/
- [X] https://code.jquery.com/
- [X] https://ajax.googleapis.com/
- [X] https://jsdelivr.com/
- [X] https://rawgit.com/
- [X] https://code.ionicframework.com/
- [X] https://cdn.fontawesome.com/
- [X] https://www.keycdn.com/ (partially)
- [X] https://www.staticfile.org/
- [X] https://ajax.aspnetcdn.com/ (partially)
- [X] https://cdn.ckeditor.com
Frequently Asked Questions
How do I get rid of your horrible icons in the gutter ?
It'll be done automatically next time you'll save your sheet :wink:
I've updated my links, how can I get rid of these Phantom objects ?
Same as above :smile:
Can I add another (or my own) CDN ?
Of course you can, unless the Open Source aspect of this project would be useless :fearful:
You basically just have to tweak CDNContent.py and imitate what is done there for your provider.
Don't forget to share your work with the world ! :earth_africa:
Or… you can just open an issue here and I'll do my best to handle your case !