dist/indian-ocean.cjs.js
function readdirFilter(dirPath, opts_, cb) {
  if (typeof cb === 'undefined') {
    cb = opts_;
    opts_ = undefined;
  }

  readdir({ async: true }, dirPath, opts_, cb);
}
function readdirFilter(dirPath, opts_, cb) {
  if (typeof cb === 'undefined') {
    cb = opts_;
    opts_ = undefined;
  }

  readdir({ async: true }, dirPath, opts_, cb);
}
function readdirFilter ( dirPath , opts_ , cb ) { if ( typeof cb === 'undefined' ) { cb = opts_ ; opts_ = undefined ; } readdir ( { async : true } , dirPath , opts_ , cb ) ; }
Asynchronously get a list of a directory's files and folders if certain critera are met.

@function readdirFilter
@param {String} dirPath The directory to read from
@param {Object} options Filter options, see below
@param {Boolean} [options.fullPath=false] If `true`, return the full path of the file, otherwise just return the file name.
@param {Boolean} [options.detailed=false] If `true`, return an object like `{basePath: 'path/to', fileName: 'file.csv'}`. Whether `basePath` has a trailing will follow what you give to `dirPath`, which can take either.
@param {Boolean} [options.skipFiles=false] If `true`, omit files from results.
@param {Boolean} [options.skipDirs=false] If `true`, omit directories from results.
@param {Boolean} [options.skipHidden=false] If `true`, omit files that start with a dot from results. Shorthand for `{exclude: /^\./}`.
@param {String|RegExp|Array<String|RegExp>} options.include If given a string, return files that have that string as their extension. If given a Regular Expression, return the files whose name matches the pattern. Can also take a list of either type. List matching behavior is described in `includeMatchAll`.
@param {String|RegExp|Array<String|RegExp>} options.exclude If given a string, return files that do not have that string as their extension. If given a Regular Expression, omit files whose name matches the pattern. Can also take a list of either type. List matching behavior is described in `excludeMatchAll`.
@param {Boolean} [options.includeMatchAll=false] If true, require all include conditions to be met for a file to be included.
@param {Boolean} [options.excludeMatchAll=false] If true, require all exclude conditions to be met for a file to be excluded.
@param {Function} callback Has signature `(err, data)` where `files` is a list of matching file names.

@example
// dir contains `data-0.tsv`, `data-0.json`, `data-0.csv`, `data-1.csv`, `.hidden-file`
io.readdirFilter('path/to/files', {include: 'csv'}, function(err, files){
console.log(files) // ['data-0.csv', 'data-1.csv']
})

io.readdirFilter('path/to/files', {include: [/^data/], exclude: ['csv', 'json']}, , function(err, files){
console.log(files) // ['path/to/files/data-0.csv', 'path/to/files/data-1.csv', 'path/to/files/data-0.tsv']
})
Asynchronously get a list of a directory s files and folders if certain critera are met .