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.
- package/README.md +49 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1,49 @@
|
|
|
1
|
-
# dotenv
|
|
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
|
+
[](https://www.npmjs.com/package/dotenv-diff)
|
|
6
|
+
[](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)
|