Skip to content

tunasayin/zibra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zibra

Zibra is a basic HTTP server module written in TS that makes creating HTTP/HTTPS servers easier.


Features

  • Fast
  • Lightweight
  • Object-oriented

Example Zibra Server

const Zibra = require("zibra");
const path = require("path");

const app = new Zibra.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.

About

Zibra is a basic HTTP server module written in TS that makes creating HTTP/HTTPS servers easier.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published