@kubilaytr/lightroute

1.0.9 • Public • Published

Banner

🌩️ LightRoute

A ligth weight router module just like ExpressJS, it's easy to use and easy to understand and it's a good choice for beginners also professionals.

🗽 Features

  • Eays to learn
  • Every functions you need to.
  • Lightweitght and fast as lightning
  • Cross platform

📦 Installation

You can install LightRoute via NPM/YARN

  npm install lightroute
  yarn add lightroute

🚀 Documentation

You can learn how to use it from GitBook

Documentation

const lightroute = require("@kubilaytr/lightroute")
const app = new lightroute()
app.get("/", (req,res) => {
    res.send("test.html")
})
app.listen(80)

Socket.io example;

const lightroute = require("@kubilaytr/lightroute")
const app = new lightroute()
var server = require("http").createServer(app.http)

app.get("/", (req,res) => {
    res.send("test.html")
})

server.listen(80)

const io = require('socket.io')(server);
io.on('connection', client => {
  client.on('event', data => {  });
  client.on('disconnect', () => {  });
});

❓ Support

You can get support from our discord servers

📰 License

Apache 2.0

🫅 Authors

Package Sidebar

Install

npm i @kubilaytr/lightroute

Weekly Downloads

2

Version

1.0.9

License

Apache-2.0

Unpacked Size

157 kB

Total Files

10

Last publish

Collaborators

  • kubilaytr
  • yiitcode