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 - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

2

index.js

@@ -188,3 +188,3 @@ const { RouteList } = require('./utils/RouteList')

const type = (urls[url].type === 'STATIC' ? 'GET' : urls[url].type)
pageDisplay = pageDisplay + `[-] [${type}] ${url}\n`

@@ -191,0 +191,0 @@ })

{
"name": "rjweb-server",
"version": "0.3.5",
"version": "0.3.6",
"description": "Easy Way to create a Web Server in Node.js",

@@ -10,2 +10,8 @@ "main": "index.js",

},
"keywords": [
"webserver",
"web-server",
"server",
"easy"
],
"author": "0x4096",

@@ -12,0 +18,0 @@ "license": "ISC",

@@ -124,3 +124,3 @@ <h1 align="center">Welcome to rjweb-server 👋</h1>

request: async(ctr) => {
console.log(`request made to ${ctr.requestPath.pathname}`) // DO NOT write any data or end the request
console.log(`request made to ${decodeURI(ctr.requestPath.pathname)}`) // DO NOT write any data or end the request
}

@@ -127,0 +127,0 @@ }

@@ -35,2 +35,3 @@ const { getAllFiles } = require('./getAllFiles.js')

}
list() {

@@ -37,0 +38,0 @@ return this.urls

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