1.0.4 • Published 2 years ago
env-mod v1.0.4
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-modUsage
Setting Environment Variables
To set an environment variable in the .env file, use the following command:
env-mod set KEY valueGetting Environment Variables
To retrieve the value of an environment variable from the .env file, use:
env-mod get KEYDeleting Environment Variables
To delete an environment variable from the .env file, use:
env-mod delete KEYOptions
--help: Display help for the command.--version: Display the version ofenv-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_URLContributing
Contributions are welcome! To contribute to env-mod, follow these steps:
- Fork the repository.
- Create a branch:
git checkout -b feature/new-feature. - Make your changes and commit them:
git commit -m 'Add new feature'. - Push to the branch:
git push origin feature/new-feature. - Submit a pull request.