nero-env 0.1.1 → 0.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/LICENSE +21 -0
- package/README.md +38 -10
- package/package.json +23 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Roshan Singh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,32 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">nero-env</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://img.shields.io/npm/v/nero-env?color=6366f1" alt="npm version" />
|
|
5
|
+
<img src="https://img.shields.io/npm/dm/nero-env?color=0f172a" alt="npm downloads" />
|
|
6
|
+
<img src="https://img.shields.io/github/license/alcanivorax/nero-env?color=22c55e" alt="license" />
|
|
7
|
+
</p>
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
<p align="center">
|
|
10
|
+
<img
|
|
11
|
+
src="https://raw.githubusercontent.com/alcanivorax/nero-env/main/assets/nero-env-preview.png"
|
|
12
|
+
alt="nero-env preview"
|
|
13
|
+
width="700"
|
|
14
|
+
/>
|
|
15
|
+
</p>
|
|
6
16
|
|
|
7
|
-
|
|
8
|
-
- empty values
|
|
9
|
-
- unused variables
|
|
17
|
+
A simple CLI tool to validate environment variables in your project.
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
## Overview
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
nero-env compares your active `.env` file with `.env.example` and reports discrepancies. It helps ensure your environment configuration is complete and accurate.
|
|
14
22
|
|
|
15
|
-
|
|
23
|
+
**What it checks:**
|
|
24
|
+
|
|
25
|
+
- **Missing variables** - defined in `.env.example` but not in `.env`
|
|
26
|
+
- **Empty values** - defined in `.env` but has no value assigned
|
|
27
|
+
- **Unused variables** - present in `.env` but not declared in `.env.example`
|
|
28
|
+
|
|
29
|
+
Clear output. No configuration required. Safe by default.
|
|
30
|
+
|
|
31
|
+
---
|
|
16
32
|
|
|
17
33
|
## Installation
|
|
18
34
|
|
|
35
|
+
Install globally using npm:
|
|
36
|
+
|
|
19
37
|
```bash
|
|
20
38
|
npm install -g nero-env
|
|
21
39
|
```
|
|
22
40
|
|
|
41
|
+
---
|
|
42
|
+
|
|
23
43
|
## Usage
|
|
24
44
|
|
|
45
|
+
### Basic Usage
|
|
46
|
+
|
|
47
|
+
Run in your project directory:
|
|
48
|
+
|
|
25
49
|
```bash
|
|
26
50
|
nero-env
|
|
27
51
|
```
|
|
28
52
|
|
|
29
|
-
|
|
53
|
+
This will check for `.env` and `.env.example` files in the current directory.
|
|
54
|
+
|
|
55
|
+
### Check a Specific Project
|
|
56
|
+
|
|
57
|
+
Specify a custom path:
|
|
30
58
|
|
|
31
59
|
```bash
|
|
32
60
|
nero-env --path ./apps/api
|
package/package.json
CHANGED
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nero-env",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Validate and compare .env files",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Validate and compare .env files to catch missing, empty, and unused variables.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
5
7
|
"bin": {
|
|
6
8
|
"nero-env": "dist/index.js"
|
|
7
9
|
},
|
|
8
10
|
"files": [
|
|
9
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
10
13
|
],
|
|
11
14
|
"scripts": {
|
|
15
|
+
"dev": "tsx src/index.ts",
|
|
12
16
|
"build": "tsc",
|
|
13
|
-
"
|
|
17
|
+
"start": "node dist/index.js"
|
|
14
18
|
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"env",
|
|
21
|
+
"dotenv",
|
|
22
|
+
"environment-variables",
|
|
23
|
+
"env-validation",
|
|
24
|
+
"env-check",
|
|
25
|
+
"env-compare",
|
|
26
|
+
"config",
|
|
27
|
+
"cli",
|
|
28
|
+
"node-cli",
|
|
29
|
+
"developer-tools",
|
|
30
|
+
"devtools",
|
|
31
|
+
"nero"
|
|
32
|
+
],
|
|
33
|
+
"author": "alcanivorax",
|
|
15
34
|
"license": "MIT",
|
|
16
35
|
"packageManager": "pnpm@10.17.1",
|
|
17
36
|
"devDependencies": {
|