Notorious Public Menace

    assert-dotenv-cli

    1.0.0 • Public • Published

    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

    Install

    npm i assert-dotenv-cli

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • buster