Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

assert-dotenv-cli NPM version Build Status

loads and asserts environment settings from dotenv files prior to executing CLI commands

  • See assert-dotenv for more information about the mechanics and reasoning behind this.

Install

$ npm install --global assert-dotenv-cli

Usage

$ assert-dotenv --help

  Usage

    $ assert-dotenv [options] <command with arguments>

  Options

    --dotenv-file <file>    dotenv file to load settings
    --assert-file <file>    assert file to test settings
    --help                  shows usage help

Simple Demo

  • ~/app/.env (file contents)

    FTW=For The Win!!!
  • ~/app/assert.env (file contents)

    FTW
  • Examples

    $ cd ~/app
    
    # first, without using assert-dotenv-cli
    $ env | grep FTW
    #
    # ^ nada
    
    # then, with assert-dotenv-cli
    $ assert-dotenv env | grep FTW
    # FTW=For The Win!!!
    # ^ tada

License

ISC © Buster Collings

About

🐚 loads and asserts environment settings from dotenv files prior to executing CLI commands

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.