1.0.1 • Published 3 years ago

opencdn v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

OpenCDN

Open your CDN faster then the light!

How to ?

First, import OpenCDN :

const cdn = require("opencdn");

Next step is opening the CDN. Type this :

cdn.open("localhost", 8080);

Default hostname : localhost

Default port is : 8080


Then, add a folder to the CDN :

cdn.addFolder(`${__dirname}/www`);

Default folder : ${__dirname}/www


You can close the CDN using the close() method :

cdn.close();

LICENSE

GPL-3.0