1.0.4 • Published 4 months ago

env-mod v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

env-mod

env-mod is a Command Line Interface (CLI) tool built with Node.js and Commander for managing environment variables in a .env file effortlessly.

Table of Contents

Installation

Make sure you have Node.js installed on your system. Then, install env-mod globally using npm:

npm install -g env-mod

Usage

Setting Environment Variables

To set an environment variable in the .env file, use the following command:

env-mod set KEY value

Getting Environment Variables

To retrieve the value of an environment variable from the .env file, use:

env-mod get KEY

Deleting Environment Variables

To delete an environment variable from the .env file, use:

env-mod delete KEY

Options

  • --help: Display help for the command.
  • --version: Display the version of env-mod.

Examples

# Set environment variable
env-mod set DATABASE_URL "mongodb://localhost:27017/mydb"

# Get environment variable value
env-mod get DATABASE_URL

# Delete environment variable
env-mod delete DATABASE_URL

Contributing

Contributions are welcome! To contribute to env-mod, follow these steps:

  1. Fork the repository.
  2. Create a branch: git checkout -b feature/new-feature.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature/new-feature.
  5. Submit a pull request.
1.0.4

4 months ago

1.0.3

4 months ago

1.0.0

6 months ago