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
- 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
- Perform a search for libraries on cdnjs.com
- View a list of your most recently used libraries for you to quickly access
- Empty/clear/flush the cache
- Quote style for HTML tags. Possible values are
single
ordouble
- Default:
single
- Protocol for urls in HTML tags. Possible values are
https://
,http://
or//
- Default:
https://
- The maxmium number of Recent Libraries to save
- Default:
10
- 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
- Default: true
- Include crossorigin attribute in script and link tags
- Default: true
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.