# cdnme

> Prototyping tool to quickly search and inject CDN links of popular libraries into html files.

Latest version **1.3.2** (published 2016-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install cdnme
pnpm add cdnme
yarn add cdnme
bun add cdnme
```

Provides the command `cdnMe`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2016-09-26 |
| First published | 2016-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Miezan Echimane |
| Maintainers | miezel |
| Keywords | cdn, url, link, tools, jsdelivr, Prototyping |

## Links

- npm: https://www.npmjs.com/package/cdnme
- Repository: https://github.com/Mimieam/cdnMe.js
- Homepage: https://github.com/Mimieam/cdnMe.js#readme
- Issues: https://github.com/Mimieam/cdnMe.js/issues
- npm.io page: https://npm.io/package/cdnme

## Dependencies (4)

- [request](https://npm.io/package/request.md) ^2.74.0
- [inquirer](https://npm.io/package/inquirer.md) ^1.1.2
- [progress](https://npm.io/package/progress.md) ^1.1.8
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.3.2 (latest) — 2016-09-26
- 1.3.1 — 2016-09-26
- 1.3.0 — 2016-09-26
- 1.2.0 — 2016-09-14
- 1.1.0 — 2016-08-30
- 1.0.0 — 2016-08-26
- 0.0.1 — 2016-08-26

## README

# cdnMe.js
[![NPM](https://nodei.co/npm/cdnme.png?downloads=true)](https://github.com/Mimieam/cdnMe.js)

A Rapid Prototyping tool to quickly search and inject CDN links of popular libraries into html files.

cdnMe searches and injects cdn links from `jsdelivr`. The latest available version is selected by default. The next major version of cdnMe will allow specifying different versions.


##Installation

```shell
> npm install -g cdnme
```

##Usage

Navigate to your project folder
and Run the command to auto Inject **cdnme** tags in your html file
```shell
> cdnme -j src/index.html
```


Once your html file is setup, libraries can be added by runing the command  `cdnMe <library> <htmlFilePath>`
```shell
> cdnMe phaser src/index.html
```

and Voila!

```html
<head>
    ....
    <!-- cdnMe:css -->
    <link rel="stylesheet" href="//cdn.jsdelivr.net/foundation/6.2.3/foundation.min.css" />
    <!-- endcdnMe -->
</head>
<body>
    <!-- cdnMe:js -->
    <script src="//cdn.jsdelivr.net/foundation/6.2.3/foundation.min.js"></script>
    <script src="//cdn.jsdelivr.net/d3js/3.5.17/d3.min.js"></script>
    <script src="//cdn.jsdelivr.net/phaser/2.6.1/phaser.min.js"></script>
    <!-- endcdnMe -->
</body>
```


##Updates

#### 1.3.0
* fixed injection for frameworks which provide both css and js files (i.e: bootstraps, foundation, etc..).

#### 1.2.1
* patch js tag is now added right after the opening body tag

#### 1.2.0
* Both CSS and JS Tags are now auto injected with option `-j`.
* **cdnme** has now support for CSS libraries.

#### 1.1.0
* autoInject tag options added.

    Running `cdnMe -j <htmlFilePath>` will Inject the **cdnMe** tags after opening `<body>` tag.

##Thank you!
Please [**Star the Repos**](https://github.com/Mimieam/cdnMe.js) as it keeps me motivated ^^, and leave me a note in case of issues or suggestions :)<br />
Thanks for using **cdnMe**

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