Licence
GPL-3.0
Version
1.0.1
Deps
3
Size
38 kB
Vulns
3
Weekly
0
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