@theobaidur/testenv

1.0.2 • Public • Published

testenv

A simple utility to test your .env files.

Description

This utility simplifies the task of testing your .env files. With its use of the dotenv and dotenv-expand packages, it helps detect and resolve issues such as typos, syntax errors, commented-out lines, or forgotten variables that can arise in your environment variables.

Although, it doesn't tell if there's a problem with the file, it only tells you what variables can be read by the dotenv package.

Installation

# using npm
npm install -g testenv

# using yarn
yarn global add testenv

Usage

testenv [path] [key] # path and key are optional

# If path is not provided, it will look for .env file in the current directory and its parent directories recursively. path supports glob patterns.

# If key is not provided, it will print all the variables in the .env file in json format.

testenv -h or --help # to see the help
testenv -v or --version # to see the version

Package Sidebar

Install

npm i @theobaidur/testenv

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

17.9 kB

Total Files

4

Last publish

Collaborators

  • theobaidur