require-directory
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -8,3 +8,3 @@ var fs = require('fs'); | ||
var defaultDelegate = function(path, filename){ | ||
return filename[0] !== '.' && /\.(js|coffee)$/i.test(filename); | ||
return filename[0] !== '.' && /\.(js|json|coffee)$/i.test(filename); | ||
}; | ||
@@ -46,4 +46,4 @@ var delegate = defaultDelegate; | ||
retval[name] = m.require(joined); | ||
if (callback && typeof(callback) == 'function') { | ||
callback(null, retval[name]); | ||
if (callback && typeof(callback) === 'function') { | ||
callback(null, retval[name]); | ||
} | ||
@@ -50,0 +50,0 @@ } |
{ | ||
"author": "Troy Goode <troygoode@gmail.com> (http://github.com/troygoode/)", | ||
"name": "require-directory", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Recursively iterates over specified directory, requiring each file, and returning a nested hash structure containing those libraries.", | ||
@@ -6,0 +6,0 @@ "keywords": ["require", "directory", "library", "recursive"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8152