Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 962b819

Browse files
committed
Improve README
1 parent 65347e9 commit 962b819

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Copies the string values in `process.env` and parses each with `JSON.parse()` to
88

99
That's it.
1010

11+
Used by [Ptorx](https://ptorx.com) and other [Xyfir](https://www.xyfir.com) projects.
12+
1113
# Usage
1214

1315
Let's assume you have an `.env` file with the following data:
@@ -56,13 +58,14 @@ import 'enve';
5658
declare global {
5759
namespace NodeJS {
5860
interface Process {
59-
enve: { foo: string; bar: boolean };
61+
enve: {
62+
foo: string;
63+
bar: boolean;
64+
baz: {
65+
qux: number;
66+
};
67+
};
6068
}
6169
}
6270
}
63-
64-
// Type 'true' is not assignable to type 'string'. ts(2322)
65-
process.env.foo = true;
66-
// Type 'string' is not assignable to type 'boolean'. ts(2322)
67-
process.env.bar = 'baz';
6871
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enve",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "JSON-parsed environment variables",
55
"main": "enve.js",
66
"author": "Xyfir, LLC <[email protected]> (https://www.xyfir.com)",

0 commit comments

Comments
 (0)