config-file
Advanced tools
+1
-1
| { | ||
| "name": "config-file", | ||
| "version": "0.1.5", | ||
| "version": "0.1.6", | ||
| "main": [ | ||
@@ -5,0 +5,0 @@ "index.js" |
+3
-3
@@ -65,9 +65,9 @@ /** | ||
| config.load = function(filename, options) { | ||
| var opts = _.extend({}, options); | ||
| options = options || {}; | ||
| // If no filename is specified, config.find will | ||
| // automatically load 'package.json' | ||
| var configfile = config.find(filename, opts); | ||
| var configfile = config.find(filename, options); | ||
| try { | ||
| return file.readDataSync(configfile, opts); | ||
| return file.readDataSync(configfile, options); | ||
| } catch(e) { | ||
@@ -74,0 +74,0 @@ console.warn('\n Unable to find config file. config.load failed.\n', e.message); |
+1
-1
| { | ||
| "name": "config-file", | ||
| "version": "0.1.5", | ||
| "version": "0.1.6", | ||
| "description": "Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8190
-0.04%