Miss any of our Open RFC calls?Watch the recordings here! »

@zoukilama/web_static

1.1.4 • Public • Published

Static Web Server

Installation

npm i @zoukilama/web_static

Use

const webstatic = require('@zoukilama/web_static');
 
webstatic.start({
    port: 3000,
    host: '127.0.0.1',      // Optional
    cors: true,             // Optional
    publicFolder: 'public'  // Optional
}, function() {             // Optional callback
    console.log('Server listening');
});
 
// webstatic.app // Give access to express instance for socket.io

Install

npm i @zoukilama/web_static

DownloadsWeekly Downloads

1

Version

1.1.4

License

ISC

Unpacked Size

4.07 kB

Total Files

9

Last publish

Collaborators

  • avatar