0.2.1 • Published 2 years ago

webinar v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

node-current

webinar is a framework for NodeJS for creating webservers

Installation

Use the given command below on the command line:

$ npm install webinar

Usage

Copy and paste the following code on your CLI

const webinar = require('webinar');
const server = webinar.createServer(5000);

server.on('connected', (req, res) => {
  if (req.url == '/') {
    res.end('Hello!');
  };
});

server.on('listener', (port) => {
  server.log('Webserver has started! Port is ' + port + '!');
});

Vile

Vile is an extension for the package.

/* Just do this */
const webinar = require('webinar');
const server = webinar.createServer(5000);

server.on('connected', (req, res) => {
  res.end('Hello!');
});

server.on('listener', (port) => {
  server.on('vile', (vile) => {
    console.log('Port is ' + port + '.');
    vile.changePort(6000);
    console.log('Woah! It just changed, we mean ' + port + '.');
  });
});

License

MIT

0.2.1

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago

1.0.0

3 years ago