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
> npm install -g cdnme
Usage
Navigate to your project folder and Run the command to auto Inject cdnme tags in your html file
> cdnme -j src/index.html
Once your html file is setup, libraries can be added by runing the command cdnMe <library> <htmlFilePath>
> cdnMe phaser src/index.html
and Voila!
.... <!-- cdnMe:css --> <!-- endcdnMe --> <!-- cdnMe:js --> <!-- endcdnMe -->
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 as it keeps me motivated ^^, and leave me a note in case of issues or suggestions :)
Thanks for using cdnMe