Skip to content

Commit c38a23e

Browse files
committed
Build: Add minified output
1 parent 26f127d commit c38a23e

File tree

4 files changed

+557
-21
lines changed

4 files changed

+557
-21
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ If you find this useful, please consider supporting my work with a [donation](ht
88

99
A utility for verifying that environment variables are present in Node.js. The main use case is to easily throw an error when an environment variable is missing. This is most useful immediately after a Node.js program has been initiated, to fail fast and let you know that environment variables haven't been setup correctly.
1010

11-
## Folder Structure
12-
13-
The most recent packages are found in these directories:
14-
15-
* `src` - the implementation source code
16-
* `tests` - tests for the implementation source code
17-
1811
## Usage
1912

2013
### Node.js
@@ -53,6 +46,14 @@ By default, an `Env` instance will read from `Deno.env()`.
5346

5447
### Browser
5548

49+
It's recommended to import the minified version to save bandwidth:
50+
51+
```js
52+
import { Env } from "https://unpkg.com/@humanwhocodes/env/dist/env.min.js";
53+
```
54+
55+
However, you can also import the unminified version for debugging purposes:
56+
5657
```js
5758
import { Env } from "https://unpkg.com/@humanwhocodes/env/dist/env.js";
5859
```

0 commit comments

Comments
 (0)