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

dotenv-vars

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-vars - npm Package Compare versions

Comparing version 1.0.13 to 2.0.0

11

index.js

@@ -12,9 +12,10 @@ const fs = require("fs");

if (
envKeyVal.length == 0 ||
envKeyVal.indexOf("=") == -1 ||
envKeyVal.indexOf("#") > -1
envKeyVal.length === 0 ||
!envKeyVal.includes("=") ||
envKeyVal.charAt(0) === "#"
)
return;
const key = envKeyVal.split("=")[0].trim(),
val = envKeyVal.split("=")[1].trim();
const i = envKeyVal.indexOf("=");
const key = envKeyVal.substring(0, i).trim();
const val = envKeyVal.substring(i + 1).trim();
if (!process.env[key]) process.env[key] = val;

@@ -21,0 +22,0 @@ });

{
"name": "dotenv-vars",
"version": "1.0.13",
"version": "2.0.0",
"description": "The slimmest module to load a .env file in your project path, setting each row in environment variables.",

@@ -5,0 +5,0 @@ "keywords": [

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