Welcome to rjweb-server š
Easy Way to create a web Server in node.js
Install
npm i rjweb-server
Usage
Initialize Server
const webserver = require('rjweb-server')
const urls = new webserver.URLgen()
urls.set('/hello', async(req, res) => {
res.write('hello world!')
})
const port = 5000
webserver.start(port, urls).then(() => {
console.log(`webserver started on port ${port}`)
})
Author
š¤ 0x4096
š¤ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2022 0x4096.
This project is ISC licensed.