envapt 5.0.1 → 5.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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p>
|
|
6
6
|
<strong>The apt way to handle environment variables.</strong><br/>
|
|
7
|
-
Read them as typed values, with zero runtime dependencies
|
|
7
|
+
Read them as typed values, with zero runtime dependencies.
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
10
|
<p>
|
|
@@ -35,7 +35,7 @@ const port = Envapter.getNumber('PORT', 3000); // number, not string | undefined
|
|
|
35
35
|
your own function or a Standard Schema validator (zod, valibot, arktype).
|
|
36
36
|
- **Zero runtime dependencies.** envapt ships its own `.env` parser, so nothing is added to your
|
|
37
37
|
dependency tree.
|
|
38
|
-
- **
|
|
38
|
+
- **Runs on Node, Bun, and Deno.** Node `>=20`, Bun `>=1.3`, Deno `>=2.5`; ESM and CJS.
|
|
39
39
|
- **`.env` loading built in.** A per-environment file cascade, `${VAR}` templates, and strict /
|
|
40
40
|
required checks.
|
|
41
41
|
|
|
@@ -56,7 +56,7 @@ Both share the same parsing, converters, and cache.
|
|
|
56
56
|
|
|
57
57
|
### Functional
|
|
58
58
|
|
|
59
|
-
Read a value
|
|
59
|
+
Read a value from any call site, in JavaScript or TypeScript. No build step.
|
|
60
60
|
|
|
61
61
|
```ts
|
|
62
62
|
import { Envapter, Converters } from 'envapt';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envapt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"description": "Type-safe environment variables for TypeScript. Zero-dependency .env loader and parser with the same API on Node, Bun, and Deno. Decorators, converters, and Standard Schema (zod/valibot/arktype) validation.",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
7
7
|
"exports": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"type": "git",
|
|
42
42
|
"url": "https://github.com/materwelonDhruv/envapt.git"
|
|
43
43
|
},
|
|
44
|
-
"homepage": "https://
|
|
44
|
+
"homepage": "https://envapt.materwelon.dev",
|
|
45
45
|
"keywords": [
|
|
46
46
|
"env",
|
|
47
47
|
".env",
|