@anzerr/http.server
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

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');
});

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @anzerr/http.server

    Weekly Downloads

    80

    Version

    1.0.22

    License

    MIT

    Unpacked Size

    7.59 kB

    Total Files

    8

    Last publish

    Collaborators

    • anzerr