env-var-cli

Declare the temporary of environment variable at the command line

Usage no npm install needed!

<script type="module">
  import envVarCli from 'https://cdn.skypack.dev/env-var-cli';
</script>

README

npm node size

env-var-cli

Declare the temporary of environment variable at the command line

Install

npm:

$ npm install -g env-var-cli

yarn:

$ yarn global add env-var-cli

Usage

dos:

$ env-var-cli config set npm_url https://registry.npmjs.org
$ env-var
$ echo %npm_url%
// => https://registry.npmjs.org
$ env-var-cli name var
$ var
$ echo %npm_url%
// => https://registry.npmjs.org

shell:

$ env-var-cli config set npm_url https://registry.npmjs.org
$ . env-var
$ echo $npm_url
// => https://registry.npmjs.org
$ env-var-cli name var
$ . var
$ echo $npm_url
// => https://registry.npmjs.org