1.1.2 • Published 3 years ago

@takkar/validate-env v1.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

validate-env

CLI tool to validate your env files.

Build Status npm.io 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.

  2. 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
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago