This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@noahtigner/validate-env-vars

0.1.13 • Public • Published

validate-env-vars

license latest last commit npm downloads
Coverage Code Quality CodeQL

A lightweight utility to check an .env file for the presence and validity of environment variables, as specified via a template file or the command line

Installation

Using npm:

npm install @noahtigner/validate-env-vars --save-dev

Usage

Check your .env file against every required variable in your template file:

validate-env-vars --template .env.template

Check your .env file against a list of required variables:

validate-env-vars --list VAR1,VAR2,VAR3

Check a specific .env file:

validate-env-vars --env .env.local --template .env.template

Arguments

Argument Description
-t <file>
--template <file>
Path to template file to check against. Optional variables can be specified with # optional suffix.
Either --template or --list must be specified.
-l <vars>
--list <vars>
Comma-separated list of required variables to check for.
Either --template or --list must be specified.
-e <file>
--env <file>
Path to .env file to check. Defaults to .env in current directory.

Package Sidebar

Install

npm i @noahtigner/validate-env-vars

Weekly Downloads

67

Version

0.1.13

License

MIT

Unpacked Size

8.6 kB

Total Files

5

Last publish

Collaborators

  • noahtigner