Search for and embed libraries from cdnjs.com into your HTML using Visual Studio Code commands.
This extension uses the cdnjs.com API to search for libraries that are hosted on cdnjs.com. You choose whatever version of the library you wish and then insert library urls directly into your HTML, copy them to your clipboard or open them in your browser.
Search for any published version of any library hosted on cdnjs.com
Embed those library's file urls directly into your documents
Insert those library file contents into the current document or a new document
Insert urls, <script> and <link> tags into your HTML for JS and CSS files
Copy urls, <script> and <link> tags to your system clipboard
Open any file url in your browser
Choose from a list of your most recently used libraries
Includes Subresource Integrity and Crossorigin attributes in <script> and <link> tags
Keeps track of your most recently used libraries for you to quickly choose from
Built-in, automatic, persistent caching
Caches your cdnjs.com search results and library data
Cache is persistent between Visual Studio Code sessions
User configurable expiration time (default: 6 hours)
Cache can be cleared at any time using a command
Visual Studio Code Commands
cdnjs: Search for libraries
Perform a search for libraries on cdnjs.com
cdnjs: Recent libraries
View a list of your most recently used libraries for you to quickly access
cdnjs: Clear cache
Empty/clear/flush the cache
Quote style for HTML tags. Possible values are single or double
Protocol for urls in HTML tags. Possible values are https://, http:// or //
The maxmium number of Recent Libraries to save
The length of time (in seconds) to cache library and search results
Default: 21600 (6 hours)
Include integrity attribute (SRI) in script and link tags
Include crossorigin attribute in script and link tags
This extension will obey VSCode's http.proxyStrictSSL setting when making SSL-enabled API calls to cdnjs.com.
Disclaimer: This extension is not affiliated with cdnjs.com in any way. It simply utilizes the publically available cdnjs.com API order to search for and fetch libraries from cdnjs.com. All cdnjs.com imagery is property of it's respective owners.