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

config-file

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-file - npm Package Compare versions

Comparing version
0.1.4
to
0.1.5
+1
-1
bower.json
{
"name": "config-file",
"version": "0.1.4",
"version": "0.1.5",
"main": [

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

@@ -24,2 +24,3 @@ /**

/**

@@ -43,8 +44,7 @@ * Export `config`

var filename = path.basename(filepath);
var homeConfig = file.findFile(home(filename));
var localConfig = file.findFile(local(filepath || pkg));
if(localConfig !== null) {
return localConfig;
} else if (homeConfig !== null) {
return homeConfig;
if(file.findFile(local(filepath || pkg)) !== null) {
return file.findFile(local(filepath || pkg));
} else if (file.findFile(home(filename)) !== null) {
return file.findFile(home(filename));
} else {

@@ -67,3 +67,4 @@ return;

config.load = function(filename, options) {
var opts = _.extend({parse: 'json'}, options);
var opts = _.extend({}, options);
// If no filename is specified, config.find will

@@ -70,0 +71,0 @@ // automatically load 'package.json'

{
"name": "config-file",
"version": "0.1.4",
"version": "0.1.5",
"description": "Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.",

@@ -37,2 +37,4 @@ "repository": {

"config file",
"load config",
"config store",
"configuration",

@@ -39,0 +41,0 @@ "runtime config"