dotenv-diff 1.1.2 → 1.1.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/README.md +49 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1 +1,49 @@
1
- # dotenv diff cli to compare .env with .env.example
1
+ # dotenv-diff
2
+
3
+ Easily compare your `.env` and `.env.example` files in Node.js projects to detect missing, extra, empty, or mismatched environment variables.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/dotenv-diff.svg)](https://www.npmjs.com/package/dotenv-diff)
6
+ [![npm downloads](https://img.shields.io/npm/dt/dotenv-diff.svg)](https://www.npmjs.com/package/dotenv-diff)
7
+
8
+ ---
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ # npm
14
+ npm install -g dotenv-diff
15
+
16
+ # yarn
17
+ yarn global add dotenv-diff
18
+
19
+ # pnpm
20
+ pnpm add -g dotenv-diff
21
+ ```
22
+ ## Usage
23
+
24
+ ```bash
25
+ dotenv-diff
26
+ ```
27
+ ## Compares .env and .env.example in the current working directory and checks for:
28
+ - Missing variables in `.env.example`
29
+ - Extra variables in `.env`
30
+ - Empty variables in `.env`
31
+ - Mismatched values between `.env` and `.env.example`
32
+
33
+ ## Optional: Check values too
34
+
35
+ ```bash
36
+ dotenv-diff --check-values
37
+ ```
38
+
39
+ When using the `--check-values` option, the tool will also compare the actual values of the variables in `.env` and `.env.example`. It will report any mismatches found and it also compares values if .env.example defines a non-empty expected value.
40
+
41
+ ## 🤝 Contributing
42
+
43
+ Contributions are welcome! Feel free to open an issue or a pull request.
44
+
45
+ ## License
46
+
47
+ MIT
48
+
49
+ ### Created by [chrilleweb](https://github.com/chrilleweb)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotenv-diff",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "description": "A small CLI and library to find differences between .env and .env.example files.",
6
6
  "bin": {