Socket
Socket
Sign inDemoInstall

dotenv

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv - npm Package Compare versions

Comparing version 14.1.1 to 14.2.0

7

CHANGELOG.md

@@ -9,2 +9,9 @@ # Changelog

## [14.2.0](https://github.com/motdotla/dotenv/compare/v14.1.1...v14.2.0) (2022-01-17)
### Added
- Add `dotenv_config_override` cli option
- Add `DOTENV_CONFIG_OVERRIDE` command line env option
## [14.1.1](https://github.com/motdotla/dotenv/compare/v14.1.0...v14.1.1) (2022-01-17)

@@ -11,0 +18,0 @@

2

lib/cli-options.js

@@ -1,2 +0,2 @@

const re = /^dotenv_config_(encoding|path|debug)=(.+)$/
const re = /^dotenv_config_(encoding|path|debug|override)=(.+)$/

@@ -3,0 +3,0 @@ module.exports = function optionMatcher (args) {

@@ -16,2 +16,6 @@ // ../config.js accepts options via environment variables

if (process.env.DOTENV_CONFIG_OVERRIDE != null) {
options.override = process.env.DOTENV_CONFIG_OVERRIDE
}
module.exports = options
{
"name": "dotenv",
"version": "14.1.1",
"version": "14.2.0",
"description": "Loads environment variables from .env file",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

@@ -206,3 +206,3 @@ <p align="center">

```bash
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env dotenv_config_debug=true
```

@@ -217,3 +217,3 @@

```bash
$ DOTENV_CONFIG_ENCODING=latin1 node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env
$ DOTENV_CONFIG_ENCODING=latin1 DOTENV_CONFIG_DEBUG=true node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env
```

@@ -220,0 +220,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc