Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

with-env

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

with-env - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+3
-0
.env

@@ -5,1 +5,4 @@ PORT=8080

DB=user@foobar.com/corge
DBSET=mongodb://user:pass@foobar.com:4000,barfoo.com:5000/corge?replicaSet=rs-ds012345
DQUOTE="this is quoted"
SQUOTE='this is also quoted'
+1
-1

@@ -21,4 +21,4 @@ var read = require("fs").readFileSync;

row = doc[i].split(/\s*=\s*/);
process.env[row[0]] = row[1];
process.env[row.shift()] = row.join('=').replace(/['"]/g,'');
}
}
{
"name": "with-env",
"version": "0.1.0",
"version": "0.1.1",
"description": "Read and apply .env file if exists in the working directory",

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