1.1.1 • Published 3 years ago

ez-dotenv v1.1.1

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

ez-dotenv

npmnpm

npm module that allows easy reading and writing of environment variables of a .env file!!

Features

  • Prints a specific variable from within a .env file to the terminal, if it exists.
  • Prints all of the variables from with a .env file to the terminal!
  • Removes a variable from inside of a .env file!
  • Adds a variable to the end of a .env file!

Installation

Install globally for use in any project that uses a .env!!

npm install -g ez-dotenv

Usage

  Usage
    $ ez-dotenv <filelocation> --read=ENV_VAR

  Options
    --filename, -f       Path to your .env file. default "./.env"
    --read, -r             Read the given variable from your .env file, if any. Empty string if none.
    --readAll, -t         Reads all the variables in your .env file.  default "false"
    --add, -a              Adds a variable to the end of your .env file
    --remove, -d        Removes the given variable from your .env file

  Examples
    $ ez-dotenv -f ./.env
    $ ez-dotenv -r FOO
    $ ez-dotenv -t
    $ ez-dotenv -a FOO bar
    $ ez-dotenv -d FOO
1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago