1.0.1 • Published 5 years ago
opencdn v1.0.1
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