Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trolls/expre55

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trolls/expre55

Troll copycat of Express.js to prank your friends

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

EXPRE55

Troll copycat of Express.js to prank your friends

Installation

Using npm to install through CLI:

$ sudo npm install -g npm
$ npm install expre55

Import in JS

const express = require("EXPRE55");

Features

  • Simulates general express initialization
  • Has the exact same syntax
  • Will work with most express code
  • Always res.send("Hello World!") with post and get requests

Example

Simple express script ruined by EXPRE55

//Just convince your friend that it is proper to type require('express') like require('EXPRESS')
//Don't forget to change the S into 5 when they're not looking.
const express = require("EXPRE55");
const app = express();

//app.use is unchanged (for now)
app.use("/test", express.static("./static/"));

//app.get has a 60% chance of returning hello world
//app.get has a 30% chance of giving a nonsensical error
//app.get has a 10% chance of working normally
app.get("/", function (req, res) {
        res.send("any message")
        //req works, so this will log the queries
        console.log(req.query)
    }
)
//post works the same as get
app.post("/", function (req, res) {
        res.send("post api call");
    }
)
//it listens to the port defined
app.listen(8080, function () {
    console.log("Listening to port 8080")
    //actually does function
})

Keywords

FAQs

Package last updated on 21 Jul 2021

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