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

node-env-file

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-env-file - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

lib/index.js

@@ -76,3 +76,3 @@ 'use strict';

if (!/^\s*\#/i.test(line)) { // ignore comment lines (starting with #).
var key_value = line.match(/^([^=]+)\s*=\s*(.+)$/);
var key_value = line.match(/^([^=]+)\s*=\s*(.*)$/);

@@ -110,3 +110,3 @@ var env_key = key_value[1];

if (options.raise) {
throw new TypeError("Environment file don't exist: " + env_file);
throw new TypeError("Environment file doesn't exist: " + env_file);
} else {

@@ -113,0 +113,0 @@ if (options.verbose && module.exports.logger) {

@@ -5,3 +5,3 @@ {

"keywords": ["process", "env", "file", "files", ".env", "ENV", "process.env", "parse", "load", "export", "exports"],
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/grimen/node-env-file",

@@ -8,0 +8,0 @@ "repository": {

@@ -143,3 +143,3 @@ var helper = require('./helper'),

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');

@@ -155,3 +155,3 @@ process.env.FOO = 'foo2';

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');

@@ -167,3 +167,3 @@ process.env.FOO = 'foo2';

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');
},

@@ -261,3 +261,3 @@

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');

@@ -273,3 +273,3 @@ process.env.FOO = 'foo2';

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');

@@ -285,3 +285,3 @@ process.env.FOO = 'foo2';

expect(process.env.BAZ).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal(undefined);
expect(process.env.QUX).to.be.equal('');
},

@@ -288,0 +288,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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