@pxe/server
v1.0.14
Published
A lightweight, simple and fast web server for Node.js
Downloads
70
Readme
PXE.js Server
The server module of PXE.js.
Installation
Install @pxe/server
.
# NPM
npm i @pxe/server
# Yarn
yarn add @pxe/server
Usage
A simple "Hello world" example:
import Server from "@pxe/server";
const app = new Server();
app.use(async ctx => {
ctx.response.body = "Hello, world!";
});
app.ls(3000);
Benchmarking
Install autocannon
then run node bench
in the root directory of this repo.
This will start a server then start benchmarking using autocannon
.
Once benchmarking is done the process is terminated.
See our framework compares to other Node.js frameworks: https://web-frameworks-benchmark.netlify.app/result?l=javascript