1.0.2 • Published 6 years ago
gatekeepercli v1.0.2
gatekeepercli
Environment Variables Done Right

Why Would You Use This?
This CLI is especially useful if you just cloned a repository and it has a javascript or javascript file(s) that have many environment variables defined.
Installation
$ npm install -g gatekeepercli
Usage
$ gk create [filename]
Creates .env file for single javascript file:
[filename]is the javascript file you would like to get the env vars from
$ gk createDir [directory]
Creates .env file for all javascript files in a directory:
[directory]is the directory you would like to get the env vars from
$ gk gitignore [dir]
Adds .env to existing or nonexisting gitignore
[dir]is the directory that the.gitignorefile is located- the default directory if
[dir]is left blank isrootor/
- the default directory if
$ gk createRev [file] [dir] [filename]
Creates .js file with variables based off of variables in a .env file
[file]is the path to the.envfile[dir]is the directory you want to save the new.jsfile to.- directory can be nonexistent
[filename]is the name of the new.jsfile- example:
$ gk createRev .env newjsfiledir env.js
- example:
$ gk travis [dir] [travDir]
Adds environment variables to .travis.yml file
[dir]is the directory in which your.envfile is located[travDir]is the directory in which your.travis.ymlfile is located- if there is no
.travis.ymlfile, a blank one will be created in the specified directory - leaving this blank will default the directory to
rootor/
- if there is no