mis-demo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/mis-demo.js +17 -0
  2. package/package.json +16 -0
package/mis-demo.js ADDED
@@ -0,0 +1,17 @@
1
+ const express = require('express');
2
+ const app = express();
3
+
4
+ const logger = (req, res, next) => {
5
+ console.log("intrusion detected");
6
+
7
+ next();
8
+ }
9
+ app.use(logger);
10
+
11
+ app.get('/', (req, res) => {
12
+ res.send('Express running with MIS Demo');
13
+ });
14
+
15
+ app.listen(3000, () => {
16
+ console.log('Server is running on port 3000');
17
+ });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "dependencies": {
3
+ "express": "^5.2.1"
4
+ },
5
+ "name": "mis-demo",
6
+ "version": "1.0.0",
7
+ "description": "",
8
+ "main": "mis-demo.js",
9
+ "devDependencies": {},
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "keywords": [],
14
+ "author": "",
15
+ "license": "ISC"
16
+ }