Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
/ zept Public archive

🔭 Nodejs HTTP Library for performance

Notifications You must be signed in to change notification settings

zely-js/zept

Repository files navigation

zept

🔭 Nodejs HTTP Library for performance

Deprecated

The zept package will no longer be maintained.
@zept/http has been renamed to @zely-js/http and the repository has been moved to zely-js/zely/http.

Installation

npm install --save-dev zept

Usage

const { zept } = require('zept');
const routes = [
  {
    path: '/',
    module: (req, res) => {
      res.end('Hello World');
    },
  },
  {
    path: '/book/:id',
    module: (req, res) => {
      res.end(req.params.id);
    },
  },
];

zept(routes).listen(3000);

License

MIT