This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dotenv-cloack

2.0.0 • Public • Published

dotenv-cloack

dotenv cloack is a package that allows you to generate on file all environment variables without the value

NPM Version Package License NPM Downloads Coverage

🍉 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

🚀 Contributors

Thanks to the wonderful people who collaborate with me !

📜 License

dotenv-cloack under License MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i dotenv-cloack

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

4.85 kB

Total Files

2

Last publish

Collaborators

  • yonicalsin
  • yonycalsin