Socket
Socket
Sign inDemoInstall

readdir

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.12 to 0.0.13

2

lib/readdir.js

@@ -234,3 +234,3 @@

exports.read = function(basePath, includeFilters, options, handler) {
var callback;
var callback = handler;
var assert = require('assert');

@@ -237,0 +237,0 @@

{
"name": "readdir",
"description": "Reads a directory and return results with the ability to use Ant style file match patterns ",
"version": "0.0.12",
"version": "0.0.13",
"author": "Steve King <steve@mydev.co>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -175,2 +175,18 @@

read('./example_dir', ['*/'], readdir.CASELESS_SORT + readdir.INCLUDE_DIRECTORIES + readdir.NON_RECURSIVE, function (error, everyFile) {
process.nextTick(function () {
Assert.equal(error, null, 'Should not have thrown an error while scanning directory');
Assert.deepEqual(everyFile, [
'AAA/',
'BBB/',
'CCC/' ], 'Current directories scanned and returned when all four arguments supplied');
});
});
}());
(function() {
var readdir = require('../lib/readdir.js'),
read = readdir.read;
read('./example_dir/missing', readdir.IGNORE_ERRORS, function (error, everyFile) {

@@ -177,0 +193,0 @@ process.nextTick(function () {

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