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
const express = require("EXPRE55");
const app = express();
app.use("/test", express.static("./static/"));
app.get("/", function (req, res) {
res.send("any message")
console.log(req.query)
}
)
app.post("/", function (req, res) {
res.send("post api call");
}
)
app.listen(8080, function () {
console.log("Listening to port 8080")
})