4.0.1 • Published 2 years ago

require-env-variable v4.0.1

Weekly downloads
146
License
MIT
Repository
github
Last release
2 years ago

Install

pnpm add require-env-variable

or

yarn add require-env-variable

or

npm install require-env-variable

Usage

import { requireEnv } from "require-env-variable";

const { NODE_ENV, SSLKEY, SSLCERT, PORT } = requireEnv(
  "NODE_ENV",
  "SSLKEY",
  "SSLCERT",
  "PORT"
);

Returns the environment variables specified, but if any of the environment variables are not defined, the process exits (throws a catchable error).

4.0.1

2 years ago

4.0.0

2 years ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago