ScanDir
sb-scandir
is a node module that supports simple file scanning with some sugar features.
Installation
npm install --save sb-scandir
API
interface Result files: Array<string> directories: Array<string> interface FileSystem : string : string : Promise<fsStats> : Promise<string> type boolean const defaultFilesystem: FileSystem; : Promise<Result>;
Examples
// orconst default: scandir defaultFilesystem = // Scan all files except the dot ones // Scan all top level files except dot ones // Scan all files even the dot ones // Scan all files except in .git and node_modules
License
This project is licensed under the terms of MIT License. See the LICENSE file for more info.