2.0.0 • Published 4 years ago
dotenv-cloack v2.0.0
dotenv-cloack
dotenv cloack
is a package that allows you to generate on file all environment variables without the value
🍉 Installation
First we will have to install, in order to use this wonderful package.
# Using npm
npm install --save dotenv-cloack
npm install -g dotenv-cloack # Globaly
# Using yarn
npm add --save dotenv-cloack
yarn global add dotenv-cloack # Globaly
🚀 Process
Create .env file
# Application
APP_NAME=Dotenv Cloack
APP_PORT=8080
# Database
DB_HOST=localhost
DB_PASS=admin_password
DB_USER=cloack
The processed file will be generated
.env.example
# Application
APP_NAME=Dotenv Cloack
APP_PORT=xxxx
# Database
DB_HOST=localhost
DB_PASS=xxxxxxxxxxxxxx
DB_USER=xxxxxx
to generate is very easy !
cloack --ignore APP_NAME,DB_HOST
🌎 Usage
npx cloack
# Or
# Globaly
cloack
options
- -f --from - the default file address is
.env
- -t --to - the default output address is the name of the input file concatenated with
.example
; for example.env.example
- -i --ignore - entered keys will be ignored, add separating by commas
(,)
- -ia --ignoreAll - ignore all keys
- -m --mask - for mask the value
- -mv --maskValue - for mask value for default is x
Example
cloack -f .env -t .env.example -i APP_NAME,AUTHOR_NAME
⭐ Support for
dotenv-cloack
is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.
🎩 Stay in touch
- Github @yonycalsin
- Twitter @yonycalsin
- Instagram @yony_calsin
- Medium @yonycalsin
- Dev @yonycalsin
🚀 Contributors
Thanks to the wonderful people who collaborate with me !
📜 License
dotenv-cloack
under License MIT.