1.0.22 • Published 3 years ago

@anzerr/http.server v1.0.22

Weekly downloads
130
License
MIT
Repository
github
Last release
3 years ago

Intro

GitHub Actions status | publish

Simple http server interface

Install

npm install --save git+https://github.com/anzerr/http.server.git
npm install --save @anzerr/http.server

Example

const {Server} = require('http.server');

let s = new Server(3670);
s.create((req, res) => {
	console.log('req');
	res.status(200).send(':)');
}).then(() => {
	console.log('started server');
});