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

1.0.14 • Public • Published

PXE.js Server

install size Gitter

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

/@pxe/server/

    Package Sidebar

    Install

    npm i @pxe/server

    Weekly Downloads

    2

    Version

    1.0.14

    License

    MIT

    Unpacked Size

    43.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • reve-node