Due to the amount of libraries of cdnjs, the repository has a very big size. Because of this some might find it difficult or time and resource consuming to carry out normal git tasks, such as cloning and commiting.
This page is a guide to cloning only some folders of cdnjs using a sparse checkout.
- If you haven't already, fork cdnjs on GitHub, so you can push commits on your fork.
- Open a terminal in your computer (with git installed)
- Run
git init cdnjs
cd cdnjs
git remote add -f origin https://github.com/YOURUSERNAME/cdnjs.git
git config core.sparsecheckout true
- Add the folders you'd like to download in
.git/info/sparse-checkout
:
echo "ajax/libs/library-name/" >> .git/info/sparse-checkout
echo "ajax/libs/another-one/" >> .git/info/sparse-checkout
git pull origin master
Now you can make your changes / add a new library. Make sure that the folder you are working on has been included in step 7, or it will be ignored in commits.
Source: http://stackoverflow.com/a/13738951/3077735
If you wish to get a list of all the packages you can get the .json from http://cdnjs.com/packages.json
To generate a link from the package.json
file use the template http(s)://cdnjs.cloudflare.com/ajax/libs/{name}/{version}/{filename}
Test a different script version with the switch of a query string.
CDN.io is there to always give you get the latest version of hosted JavaScript libraries on public CDNs
An ASP.net MVC3 web helper for loading scripts from http://cdnjs.com.
A command line interface to search/install Javascript/CSS libraries from http://cdnjs.com
Load CSS and JS faster in Rails. Your assets are covered.
gimme is a little, experimental tool to manage web assets from the CLI.
Fetchjs makes it trivial to download and setup the latest versions of client side libraries.
Generate and serve combo URLs across various CDNs and other public servers
A front end for http://cdnjs.com for Emacs
Command line interface for http://cdnjs.com written in Go
This extension injects any JS library from CDNJS.com into a page.
This extension loads any JS or CSS file directly into your open tab. You can manually enter the URL of the file, or use one of the libraries provided by CDNJS.com, which will be automatically listed.
A minimalistic bower-like tool for managing web resources relying mainly on Cdnjs. Used on Arch Linux, Git Bash and Babun/Cygwin. Depends on jq, bash and curl.
cdnjs-ext is a Chrome extension that allows you to interact with cdnjs in a quick and simple way.