🌜
🌞

Best JavaScript Environment Variables Libraries

dotenv

dotenv

v16.0.1

Loads environment variables from .env file

Last Commit
Sep 20, 2022
GitHub Stargazers
16.1K
License
BSD-2-Clause
Contributors
42
cross-env

cross-env

v7.0.3

Run scripts that set and use environment variables across platforms

Last Commit
Jan 5, 2021
GitHub Stargazers
5,876
License
MIT
Contributors
47
proxy-from-env

proxy-from-env

v1.1.0

Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.

Last Commit
Mar 4, 2020
GitHub Stargazers
32
License
MIT
Contributors
3
loose-envify

loose-envify

v1.4.0

Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST

Last Commit
Jul 10, 2018
GitHub Stargazers
263
License
MIT
Contributors
5
@aws-sdk/credential-provider-env

@aws-sdk/credential-provider-env

v3.127.0

AWS credential provider that sources credentials from known environment variables

Last Commit
Sep 27, 2022
GitHub Stargazers
1,868
License
Apache-2.0
Contributors
62
env-ci

env-ci

v7.3.0

Get environment variables exposed by CI services

Last Commit
Sep 26, 2022
GitHub Stargazers
210
License
MIT
Contributors
18
global-agent

global-agent

v3.0.0

Global HTTP/HTTPS proxy configurable using environment variables.

Last Commit
Nov 29, 2021
GitHub Stargazers
244
License
BSD-3-Clause
Contributors
8
dotenv-webpack

dotenv-webpack

v8.0.0

A simple webpack plugin to support dotenv.

Last Commit
Aug 15, 2022
GitHub Stargazers
1,220
License
MIT
Contributors
19
env-cmd

env-cmd

v10.1.0

Executes a command using the environment variables in an env file

Last Commit
May 15, 2020
GitHub Stargazers
1,432
License
MIT
Contributors
17
getenv

getenv

v1.0.0

Get and typecast environment variables.

Last Commit
May 15, 2021
GitHub Stargazers
57
License
MIT
Contributors
6
env-var

env-var

v7.1.1

Verification, sanitization, and type coercion for environment variables in Node.js

Last Commit
Sep 7, 2022
GitHub Stargazers
383
License
MIT
Contributors
20
@therealklanni/cross-env

@therealklanni/cross-env

v6.0.0

Run scripts that set and use environment variables across platforms

Last Commit
Jan 5, 2021
GitHub Stargazers
5,876
License
MIT
Contributors
47
read-env

read-env

v2.0.0

Transform environment variables into JSON object with sanitized values.

Last Commit
Oct 18, 2020
GitHub Stargazers
58
License
MIT
Contributors
2
require-environment-variables

require-environment-variables

v1.2.0

Require specific environment variables. If they don't exist, the application exits

Last Commit
Oct 3, 2018
GitHub Stargazers
43
License
MIT
Contributors
2
@serverless-stack/static-site-env

@serverless-stack/static-site-env

v1.6.7

A simple CLI that allows your static site to load the environment variables from your SST app.

Last Commit
Sep 26, 2022
GitHub Stargazers
8,940
License
MIT
Contributors
38
serverless-dotenv-plugin

serverless-dotenv-plugin

v4.0.2

Preload environment variables with dotenv into serverless.

Last Commit
Aug 1, 2022
GitHub Stargazers
304
License
MIT
Contributors
13
babel-plugin-transform-inline-environment-variables

babel-plugin-transform-inline-environment-variables

v0.4.4

Inline environment variables.

Last Commit
May 6, 2022
GitHub Stargazers
4,338
License
MIT
Contributors
73
envalid

envalid

v7.3.1

Validation for your environment variables

Last Commit
Sep 10, 2022
GitHub Stargazers
935
License
MIT
Contributors
26
sync-dotenv

sync-dotenv

v2.7.0

Keep your .env in sync with .env.example

Last Commit
Apr 25, 2022
GitHub Stargazers
444
License
MIT
Contributors
5
@snowpack/plugin-dotenv

@snowpack/plugin-dotenv

v2.2.0

Use [dotenv](https://github.com/motdotla/dotenv) to load environment variables from your project `.env` files. See Snowpack's [Environment Variables](https://www.snowpack.dev/reference/environment-variables) documentation to learn more.

Last Commit
Apr 28, 2022
GitHub Stargazers
19.8K
License
MIT
Contributors
99
@cubejs-backend/dotenv

@cubejs-backend/dotenv

v9.0.2

Loads environment variables from .env file

Last Commit
Feb 11, 2021
GitHub Stargazers
-
License
BSD-2-Clause
Contributors
39
babel-plugin-transform-environment-variables-to-getters

babel-plugin-transform-environment-variables-to-getters

v2.0.1

The babel plugin to transform inline environment variables to value getters

Last Commit
-
GitHub Stargazers
-
License
MIT
Contributors
1