Socket
Socket
Sign inDemoInstall

require-directory

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.1.0

5

index.js

@@ -6,3 +6,3 @@ var fs = require('fs');

var requireDirectory = module.exports = function(m, path, exclude){
var requireDirectory = module.exports = function(m, path, exclude, callback){
var defaultDelegate = function(path, filename){

@@ -46,2 +46,5 @@ return filename[0] !== '.' && /\.(js|coffee)$/i.test(filename);

retval[name] = m.require(joined);
if (callback && typeof(callback) == 'function') {
callback(null, retval[name]);
}
}

@@ -48,0 +51,0 @@ }

2

package.json
{
"author": "Troy Goode <troygoode@gmail.com> (http://github.com/troygoode/)",
"name": "require-directory",
"version": "1.0.2",
"version": "1.1.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"],

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc