srver
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Srver

CI

Srver is a simple server with tools to create APIs

Server

You will have to install the srver package: npm install srver. Then:

import { Server } from 'srver';

const server = new Server();
await server.start();

Without any configuration this server already has:

  • Initialized in the 8000 port
  • /health endpoint
  • 404 error
  • Error handler (no app crashes)
  • Disabled x-powered-by header
  • Incoming JSON requests parsed

Package Sidebar

Install

npm i srver

Weekly Downloads

1

Version

1.4.0

License

ISC

Unpacked Size

42 kB

Total Files

46

Last publish

Collaborators

  • itaibo