0.01
No commit activity in last 3 years
No release in over 3 years
This package lets you download the popular JavaScript packages with one command, thanks to www.cdnjs.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

cdnjs-command

Command line helper for cdnjs.com.

This makes including JS files in your project easy-peasy. To add a JS libary to your project:

$ cdnjs jquery
Created jquery-1.5.1.js.

You probably want to link the online version as well:

$ cdnjs html jquery
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'></script>

Or you may want just the URL:

$ cdnjs url underscore
http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js

Installation

This is a Ruby gem that requires Ruby 1.8+.

$ gem install cdnjs-command

Usage

Usage:
  cdnjs NAME       - Download specific package

Other commands:
  cdnjs list       - List available packages
  cdnjs info NAME  - Show package info
  cdnjs html NAME  - Show HTML snippet to include given package
  cdnjs url NAME   - Show the URL for the given package
  cdnjs update     - Updates the package cache

You may also use the first letters of each command; e.g., `cdnjs i jquery`.
Here are some common examples:

  $ cdnjs jquery
  $ echo `cdnjs h underscore` >> index.html

Acknowledgements