0.0.4 • Published 4 years ago
@hamjs/http-server v0.0.4
@hamjs/http-server
Mini http server framework for NodeJS
Installation
To install @hamjs/http-server
, run this command using terminal inside your project.
npm install @hamjs/http-server
Usage
To use this framework, you can follow this example.
const Server = require('@hamjs/http-server');
const server = new Server();
server.get('/', (req, res) => {
res.send('hello');
});
server.listen(8080);