1.0.4 • Published 2 years ago

zebra-http v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Features

  • Fast
  • Lightweight
  • Object-oriented

Example Zebra Server

const Zebra = require("zebra-http");
const path = require("path");

const app = new Zebra.App({
  debug: true,
});

app.get("/", (req, res) => {
  res.sendText("Hello World!").end();
});

// Or to combie multiple methods in one function you can also use this approach.
app.registerRoute("/", ["GET", "POST"], (req, res) => {
  res.sendText("Hello World!").end();
});

app.start(3000, () => {
  console.log("Server started at port 3000");
});

Documentation

Click here to go to the documentation.

License

This project is licensed under GNU General Public License v3.0.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago