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

include-all

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

include-all - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

README.md

5

index.js

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

try { files = fs.readdirSync(options.dirname); }
catch (e) { return false; }
catch (e) {
if (options.optional) return {};
else throw new Error('Directory not found: ' + options.dirname);
}

@@ -11,0 +14,0 @@ function excludeDirectory(dirname) {

2

package.json
{
"name": "include-all",
"version": "0.0.0",
"version": "0.0.1",
"description": "An easy way to include all (or require all) files within a directory. Note: This is a fork of felixge's require-all which returns false instead of throwing an error if the directory doesn't exist. This allows for optional includes, and relieves you from having to wrap the call to require-all in a try/catch.",

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

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