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.2.2 to 0.2.3

index.ts

6

package.json
{
"name": "rjweb-server",
"version": "0.2.2",
"version": "0.2.3",
"description": "Easy Way to create a Web Server in Node.js",
"main": "index.js",
"main": "index.ts",
"scripts": {
"test": "node index.js"
"test": "node test.js"
},

@@ -9,0 +9,0 @@ "repository": {

<h1 align="center">Welcome to rjweb-server 👋</h1>
<center>
<a href="https://www.npmjs.com/package/rjweb-server" target="_blank">
<img alt="Version" src="https://img.shields.io/npm/v/web-server.svg">
</a>
<img alt="Version" src="https://img.shields.io/npm/v/rjweb-server.svg">
</a>0
<a href="https://github.com/rotvproHD/NPM_WEB-SERVER#readme" target="_blank">

@@ -40,3 +40,3 @@ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />

if (!ctr.query.has("name")) return ctr.print('please supply the name query!!')
ctr.print(`Hello, ${ctr.query.get("name")}! How are you doing?`)

@@ -43,0 +43,0 @@ })

@@ -12,5 +12,4 @@ const types = [

set(type, url, code) {
if (!types.includes(type)) throw TypeError('No Valid Request Type: ' + type)
if (!types.includes(type)) throw TypeError(`No Valid Request Type: ${type}\nPossible Values: ${types.toString()}`)
this.urls[url] = {
hasParams: (url.match(/[\:]([A-Za-z0-9]+)/g) === null ? false : true),
array: url.split('/'),

@@ -17,0 +16,0 @@ type,

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