opencdn

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i opencdn

Weekly Downloads

0

Version

1.0.1

License

GPL-3.0

Unpacked Size

39 kB

Total Files

5

Last publish

Collaborators

  • n0ct3ri4