# google-cdn-data

> Google CDN Data for google-cdn

Latest version **0.1.25** (published 2017-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install google-cdn-data
pnpm add google-cdn-data
yarn add google-cdn-data
bun add google-cdn-data
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.25 |
| Published | 2017-03-11 |
| First published | 2014-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Shahar Talmi |
| Maintainers | passy, shahata |
| Keywords | cdn, google |

## Links

- npm: https://www.npmjs.com/package/google-cdn-data
- Repository: https://github.com/shahata/google-cdn-data
- Issues: https://github.com/shahata/google-cdn-data/issues
- npm.io page: https://npm.io/package/google-cdn-data

## Recent versions

- 0.1.25 (latest) — 2017-03-11
- 0.1.23 — 2015-10-25
- 0.1.22 — 2015-09-30
- 0.1.21 — 2015-09-08
- 0.1.20 — 2015-08-28
- 0.1.17 — 2015-02-02
- 0.1.16 — 2015-01-16
- 0.1.15 — 2014-12-12
- 0.1.14 — 2014-11-09
- 0.1.13 — 2014-11-08
- 0.1.12 — 2014-10-21
- 0.1.11 — 2014-10-09
- 0.1.10 — 2014-10-03
- 0.1.9 — 2014-09-26
- 0.1.8 — 2014-09-01
- … 7 more at https://npm.io/package/google-cdn-data/versions

## README

# google-cdn-data [![Build Status](https://travis-ci.org/shahata/google-cdn-data.png)](https://travis-ci.org/shahata/google-cdn-data)

> [Google CDN](https://developers.google.com/speed/libraries/devguide) data for [google-cdn](https://github.com/passy/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.

## Getting started

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

### Example

*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 = '<script src="bower_components/jquery/jquery.js"></script>';
googlecdn(markup, bowerConfig, {cdn: require('google-cdn-data')}, function (err, result) {
  if (err) {
    throw err;
  }

  assert.equal(result,
    '<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>');
});
```

## License

MIT

---
_Source: https://npm.io/package/google-cdn-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
