@kubilaytr/lightroute
v1.0.9
Published
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.
Downloads
19
Readme
🌩️ 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
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