New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dotenv-haphap

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-haphap - npm Package Compare versions

Comparing version 2.0.4 to 3.0.0

5

config.js
'use strict';
require('./main').config(getPathsFromEnv() || getPathsFromCli() || '.env');
const dotenvHaphap = require('./main');
const paths = (getPathsFromEnv() || getPathsFromCli() || '.env').split(',');
dotenvHaphap(...paths);
function getPathsFromEnv() {

@@ -6,0 +9,0 @@ return process.env.DOTENV_PATHS || null

7

main.js

@@ -7,6 +7,7 @@ 'use strict';

module.exports = {
config(paths) {
paths = paths || '.env';
config(...paths) {
if (paths.length === 0) {
paths = ['.env'];
}
const parsed = paths
.split(',')
.map(loadEnvsFile)

@@ -13,0 +14,0 @@ .map(parse)

{
"name": "dotenv-haphap",
"version": "2.0.4",
"version": "3.0.0",
"description": "dotenv with multiple dotenv file support",

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

@@ -21,3 +21,3 @@ # dotenv-haphap

```javascript
require('dotenv-haphap').config('.env,confidential.env')
require('dotenv-haphap').config('.env', 'confidential.env')
```

@@ -24,0 +24,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