ccd
cdnjs-cdn-data
npm i cdnjs-cdn-data
ccd

cdnjs-cdn-data

CDNJS CDN Data for google-cdn

by Shahar Talmi

0.1.2 (see all)License:MITTypeScript:Not Found
npm i cdnjs-cdn-data
Readme

cdnjs-cdn-data Build Status

CDNJS data for google-cdn.

This module makes it easy to replace references to your bower resources in your app with links to the libraries on CDNJS.

Getting started

Install: npm install --save-dev google-cdn cdnjs-cdn-data

Example

bower.json:

{
  "name": "my-awesome-app",
  "dependencies": {
    "jquery": "~2.0.0"
  }
}
var googlecdn = require('google-cdn');

var bowerConfig = loadJSON('bower.json');
var markup = '<script src="bower_components/jquery/jquery.js"></script>';
googlecdn(markup, bowerConfig, {cdn: require('cdnjs-cdn-data')}, function (err, result) {
  if (err) {
    throw err;
  }

  assert.equal(result,
    '<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>');
});

License

MIT

Downloads/wk

71.1K

GitHub Stars

12

LAST COMMIT

7yrs ago

MAINTAINERS

1

CONTRIBUTORS

4

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.1.2
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate