Nuns Practicing Misanthropy

    jsdelivr-cdn-data

    1.0.4 • Public • Published

    jsdelivr-cdn-data Build Status

    jsDelivr 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 jsDelivr.

    Getting started

    Install: npm install --save-dev google-cdn jsdelivr-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('jsdelivr-cdn-data')}, function (err, result) {
      if (err) {
        throw err;
      }
     
      assert.equal(result,
        '<script src="//cdn.jsdelivr.net/jquery/2.0.3/jquery.min.js"></script>');
    });

    License

    MIT

    Keywords

    Install

    npm i jsdelivr-cdn-data

    DownloadsWeekly Downloads

    47,915

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    457 kB

    Total Files

    10

    Last publish

    Collaborators

    • shahata