env-detector 1.0.2 → 1.0.3

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/bin/env-scan.js +6 -0
  2. package/package.json +8 -2
package/bin/env-scan.js CHANGED
@@ -16,9 +16,15 @@ const checkMode = args.includes("--check");
16
16
  const fixMode = args.includes("--fix");
17
17
  const securityMode = args.includes("--security");
18
18
  const strictMode = args.includes("--strict");
19
+ const versionMode = args.includes("--version") || args.includes("--v")
19
20
 
20
21
  let result = scanProject(cwd);
21
22
 
23
+ if (versionMode) {
24
+ const pkg = require("../package.json");
25
+ console.log(`env-detector v${pkg.version}`);
26
+ process.exit(0);
27
+ }
22
28
 
23
29
  // security
24
30
  if (securityMode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "env-detector",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Smart .env generator and auditor",
5
5
  "main": "src/scan.js",
6
6
  "bin": {
@@ -9,7 +9,13 @@
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
- "keywords": ["env", "dotenv", "environment", "env-scan", "env-detector"],
12
+ "keywords": [
13
+ "env",
14
+ "dotenv",
15
+ "environment",
16
+ "env-scan",
17
+ "env-detector"
18
+ ],
13
19
  "author": "Jenil Gajjar",
14
20
  "license": "MIT",
15
21
  "dependencies": {