Socket
Socket
Sign inDemoInstall

rjweb-server

Package Overview
Dependencies
Maintainers
1
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rjweb-server

Easy Way to create a Web Server in Node.js


Version published
Weekly downloads
576
decreased by-59.78%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to rjweb-server 👋

Version Documentation Maintenance

Easy Way to create a web Server in node.js

🏠 Homepage

Install

npm i rjweb-server

Usage

Initialize Server

/* ************ *
 * EXPERIMENTAL *
 * ************ */
// You shouldnt use the current
// State for Production Use

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.

FAQs

Package last updated on 31 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc