Socket
Socket
Sign inDemoInstall

loose-envify

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

cli.js

5

package.json
{
"name": "loose-envify",
"version": "1.1.0",
"version": "1.2.0",
"description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST",

@@ -17,2 +17,5 @@ "keywords": [

"author": "Andres Suarez <zertosh@gmail.com>",
"bin": {
"loose-envify": "cli.js"
},
"repository": {

@@ -19,0 +22,0 @@ "type": "git",

2

README.md

@@ -23,3 +23,3 @@ # loose-envify

loose-envify has the exact same interface as [envify](https://github.com/hughsk/envify).
loose-envify has the exact same interface as [envify](https://github.com/hughsk/envify), including the CLI.

@@ -26,0 +26,0 @@ ## Benchmark

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

var out = '';
var out = [];
var purge = envs.some(function(env) {

@@ -34,3 +34,3 @@ return env._ && env._.indexOf('purge') !== -1;

typeof replacement === 'string') {
out += replacement;
out.push(replacement);
i += 4;

@@ -40,6 +40,6 @@ continue;

}
out += parts[i];
out.push(parts[i]);
}
return out;
return out.join('');
}

@@ -46,0 +46,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc