@fortressjs/cli 0.1.0 → 0.1.1

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/README.md +70 -0
  2. package/package.json +7 -6
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # @fortressjs/cli
2
+
3
+ Security auditing CLI for Express applications.
4
+
5
+ Analyze Express projects and identify missing security protections such as rate limiting, request validation, security headers, and threat detection.
6
+
7
+ ## Installation
8
+
9
+ ### Global Installation
10
+
11
+ ```bash
12
+ npm install -g @fortressjs/cli
13
+ ```
14
+
15
+ ### Run Without Installation
16
+
17
+ ```bash
18
+ npx @fortressjs/cli audit
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ Audit the current project:
24
+
25
+ ```bash
26
+ fortress audit
27
+ ```
28
+
29
+ ## Example Output
30
+
31
+ ```text
32
+ 🛡️ FortressJS Security Audit CLI
33
+
34
+ Security Score: 70/100
35
+
36
+ Missing Protections:
37
+ ✗ Threat Intelligence Engine
38
+ ✗ HTTPS Enforcement / HSTS
39
+
40
+ Recommendations:
41
+ • Add fortress.threatDetector()
42
+ • Configure strict transport security
43
+ ```
44
+
45
+ ## What It Checks
46
+
47
+ * Content Security Policy (CSP)
48
+ * Security Headers
49
+ * Rate Limiting
50
+ * Request Size Limiting
51
+ * Security Logging
52
+ * Threat Detection
53
+ * HTTPS / HSTS Configuration
54
+
55
+ ## Roadmap
56
+
57
+ Planned improvements:
58
+
59
+ * File and directory path support
60
+ * AST-based code analysis
61
+ * More advanced security checks
62
+ * Framework-specific auditing
63
+
64
+ ## Repository
65
+
66
+ https://github.com/davanesh/fortressjs
67
+
68
+ ## License
69
+
70
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fortressjs/cli",
3
- "version": "0.1.0",
4
- "description": "Security auditing CLI for FortressJS and Express applications",
3
+ "version": "0.1.1",
4
+ "description": "Security audit CLI for Express applications. Detect missing security headers, rate limits, request validation, and threat protection.",
5
5
  "license": "MIT",
6
6
  "author": "Davanesh Saminathan",
7
7
  "homepage": "https://github.com/davanesh/fortressjs",
@@ -26,21 +26,22 @@
26
26
  "node": ">=18"
27
27
  },
28
28
  "bin": {
29
- "fortress": "./bin/fortress.js"
29
+ "fortress": "bin/fortress.js"
30
30
  },
31
31
  "main": "dist/index.js",
32
32
  "types": "dist/index.d.ts",
33
33
  "files": [
34
34
  "dist",
35
- "bin"
35
+ "bin",
36
+ "README.md"
36
37
  ],
37
38
  "scripts": {
38
39
  "build": "tsc"
39
40
  },
40
41
  "dependencies": {
41
- "@fortressjs/core": "0.1.0"
42
+ "@fortressjs/core": "^0.1.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "typescript": "^5.0.0"
45
46
  }
46
- }
47
+ }