Google CDN Data for google-cdn
npm install google-cdn-data> Google CDN 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 the Google CDN.
Install: npm install --save-dev google-cdn google-cdn-data
bower.json:
``json`
{
"name": "my-awesome-app",
"dependencies": {
"jquery": "~2.0.0"
}
}
`javascript
var googlecdn = require('google-cdn');
var bowerConfig = loadJSON('bower.json');
var markup = '';
googlecdn(markup, bowerConfig, {cdn: require('google-cdn-data')}, function (err, result) {
if (err) {
throw err;
}
assert.equal(result,
'');
});
``
MIT