Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: entropitor/dotenv-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.4.0
Choose a base ref
...
head repository: entropitor/dotenv-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ed62fc71afc952181913aa275d7a002a5178b2d6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 9, 2024

  1. fix: assignment to const

    entropitor committed Mar 9, 2024
    Copy the full SHA
    e794d3e View commit details
  2. 7.4.1

    entropitor committed Mar 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ed62fc7 View commit details
Showing with 3 additions and 3 deletions.
  1. +2 −2 cli.js
  2. +1 −1 package.json
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
@@ -89,9 +89,9 @@ paths.forEach(function (env) {
Object.assign(process.env, parsedVariables)

if (argv.p) {
const value = process.env[argv.p]
let value = process.env[argv.p]
if (typeof value === 'string') {
value = `\`${value}\``
value = `${value}`
}
console.log(value != null ? value : '')
process.exit()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dotenv-cli",
"description": "A global executable to run applications with the ENV variables loaded by dotenv",
"version": "7.4.0",
"version": "7.4.1",
"author": "entropitor",
"bin": {
"dotenv": "./cli.js"