Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

require-directory

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-directory - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

index.js

@@ -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"],

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc