npm.io
1.0.0 • Published 7 years agoCLI

@takkar/validate-env

Licence
ISC
Version
1.0.0
Deps
2
Size
95 kB
Vulns
0
Weekly
0
Stars
1

validate-env

CLI tool to validate your env files.

Build Status codecov jest

alt text

Installation

  yarn add @takkar/validate-env -dev

Usage

  1. Now create a sample env file with keys your think should be available in your env files. For eg. config/.env.sample .
name
age
city
country

Now, validate-env will validate your env file against these keys. Let's say we wanna validate .env.development.

  1. Run the command.
validate-env --sample config/.env.sample --env .env.development

API

validate-env [options]

Options:
    --sample     Sample env file with keys you think should be available in all env files.
    --env  A env file to check

Keywords