envapt 2.2.5 → 2.2.7
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/{envuments.license → NOTICE.md} +8 -0
- package/README.md +22 -20
- package/package.json +3 -4
- package/NOTICE +0 -5
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Inspired by [Envuments](https://github.com/mason-rogers/envuments)
|
|
2
|
+
|
|
3
|
+
This product includes software originally developed by Mason Rogers.
|
|
4
|
+
|
|
5
|
+
Fully rewritten under the MIT License by Dhruv Jain.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
MIT License
|
|
2
10
|
|
|
3
11
|
Copyright (c) 2020-2020 Mason Rogers <viction.dev@gmail.com>
|
package/README.md
CHANGED
|
@@ -8,18 +8,19 @@
|
|
|
8
8
|
<strong>No more <code>process.env.PORT || '3000'</code> everywhere!</strong>
|
|
9
9
|
</p>
|
|
10
10
|
<div align="center">
|
|
11
|
-
<img alt="
|
|
12
|
-
<a href="https://
|
|
13
|
-
<
|
|
14
|
-
<a href="https://
|
|
15
|
-
<
|
|
16
|
-
<a href="
|
|
17
|
-
<a href="https://
|
|
18
|
-
<a href="https://nodejs.org/api/
|
|
11
|
+
<a href="https://www.npmjs.com/package/envapt"><img alt="npm" src="https://img.shields.io/npm/v/envapt?logo=npm&logoColor=cb3838&label=%20&labelColor=103544&color=cb3838"></a>
|
|
12
|
+
<a href="https://jsr.io/@materwelon/envapt"><img alt="jsr" src="https://jsr.io/badges/@materwelon/envapt"></a>
|
|
13
|
+
<img alt="CI" src="https://img.shields.io/github/actions/workflow/status/materwelonDhruv/envapt/check.yml?branch=main&label=tests&style=flat&logo=github&color=3fb950&labelColor=103544"></a>
|
|
14
|
+
<a href="https://codecov.io/github/materwelonDhruv/envapt"><img alt="codecov" src="https://img.shields.io/codecov/c/github/materwelonDhruv/envapt/main?token=IQ4GC645LO&logo=codecov&color=f01f7a&labelColor=103544"/></a>
|
|
15
|
+
<br>
|
|
16
|
+
<a href="LICENSE"><img alt="License" src="https://img.shields.io/npm/l/envapt?style=flat&color=e97826&logo=apache&label="></a>
|
|
17
|
+
<a href="https://www.typescriptlang.org/"><img alt="Types" src="https://img.shields.io/badge/TypeScript-3178c6?style=flat&logo=typescript&logoColor=white"></a>
|
|
18
|
+
<a href="https://nodejs.org/api/esm.html"><img alt="ESM" src="https://img.shields.io/badge/ESM-ffca28?style=flat"></a>
|
|
19
|
+
<a href="https://nodejs.org/api/modules.html"><img alt="CJS" src="https://img.shields.io/badge/CJS-ff6b35?style=flat"></a>
|
|
19
20
|
<a href="https://nodejs.org/"><img alt="Node" src="https://img.shields.io/badge/node-%3E=22.0.0-339933?style=flat&logo=node.js&logoColor=white"></a>
|
|
20
|
-
<a href="https://bundlephobia.com/package/envapt"><img alt="Bundle Size" src="https://img.shields.io/bundlephobia/minzip/envapt?style=flat&color=
|
|
21
|
-
<a href="https://www.npmjs.com/package/envapt"><img alt="Downloads" src="https://img.shields.io/npm/dm/envapt?style=flat&color=
|
|
22
|
-
<a href="https://github.com/
|
|
21
|
+
<a href="https://bundlephobia.com/package/envapt"><img alt="Bundle Size" src="https://img.shields.io/bundlephobia/minzip/envapt?style=flat&color=212121"></a>
|
|
22
|
+
<a href="https://www.npmjs.com/package/envapt"><img alt="Downloads" src="https://img.shields.io/npm/dm/envapt?style=flat&color=f7f6e8"></a>
|
|
23
|
+
<a href="https://github.com/materwelonDhruv/envapt/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/materwelondhruv/envapt?style=flat&color=e3b341"></a>
|
|
23
24
|
</div>
|
|
24
25
|
|
|
25
26
|
---
|
|
@@ -94,10 +95,6 @@
|
|
|
94
95
|
- **Node.js**: `>=22.0.0`
|
|
95
96
|
_Recommended for full ESM and `nodenext` support_
|
|
96
97
|
|
|
97
|
-
#### 📦 Runtime Dependency
|
|
98
|
-
|
|
99
|
-
- **dotenv**: _(bundled at runtime)_
|
|
100
|
-
|
|
101
98
|
#### 🛠️ TypeScript Users Only
|
|
102
99
|
|
|
103
100
|
- **TypeScript**: `>=5.8` _(Only required for decorator API)_
|
|
@@ -120,11 +117,14 @@
|
|
|
120
117
|
|
|
121
118
|
### Installation
|
|
122
119
|
|
|
123
|
-
| Package Manager | Command
|
|
124
|
-
| --------------- |
|
|
125
|
-
| **
|
|
126
|
-
| **
|
|
127
|
-
| **
|
|
120
|
+
| Package Manager | Command |
|
|
121
|
+
| --------------- | --------------------------------- |
|
|
122
|
+
| **pnpm** | `pnpm add envapt` |
|
|
123
|
+
| **yarn** | `yarn add envapt` |
|
|
124
|
+
| **npm** | `npm install envapt` |
|
|
125
|
+
| **deno** (jsr) | `deno add jsr:@materwelon/envapt` |
|
|
126
|
+
| **deno** (npm) | `deno add npm:envapt` |
|
|
127
|
+
| **bun** | `bun add envapt` |
|
|
128
128
|
|
|
129
129
|
### Basic Usage
|
|
130
130
|
|
|
@@ -667,6 +667,8 @@ Envapter.envPaths = [resolve(__dirname, '.env.local'), resolve(__dirname, '.env.
|
|
|
667
667
|
// Or single file
|
|
668
668
|
Envapter.envPaths = resolve(__dirname, '.env.production');
|
|
669
669
|
|
|
670
|
+
// Can use `import.meta.dirname` in ESM
|
|
671
|
+
|
|
670
672
|
// Or just don't set a path for it to default to .env at the root of your project
|
|
671
673
|
```
|
|
672
674
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envapt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.7",
|
|
5
5
|
"description": "The apt way to handle env",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -20,10 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
-
"NOTICE",
|
|
23
|
+
"NOTICE.md",
|
|
24
24
|
"LICENSE",
|
|
25
|
-
"README.md"
|
|
26
|
-
"envuments.license"
|
|
25
|
+
"README.md"
|
|
27
26
|
],
|
|
28
27
|
"repository": {
|
|
29
28
|
"type": "git",
|