Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assert-dotenv-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-dotenv-cli

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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

assert-dotenv-cli NPM version Build Status

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

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

Keywords

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc