raikg
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Raikg

Minimalist web server for Node.Js

Topics

Get started

// import the library 
const Raikg = require("raikg");
// create a simple HTTP server instance
const server = new Raikg();
// add routing scheme
server.set({
    path: '/',
    handler: (req, res, next) => {
        res.send("Hello world!");
    }
});

server.start({ port: 3131 }).then(info => console.log(info));

Package Sidebar

Install

npm i raikg

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

19.2 kB

Total Files

21

Last publish

Collaborators

  • tonykssa