1.0.3 • Published 4 years ago

@anzerr/fs.find v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

List all folder and files from a entrypoint

Install

npm install --save git+https://git@github.com/anzerr/fs.find.git
npm install --save @anzerr/fs.find

Example

const find = require('fs.find');

find('./', {
    filter: (path) => true,  // filter folder that should not be gone down
    callback: (path, isDirectory) => {
        console.log(path, isDirectory);
    },
    max: 2
}).then(() => {
    console.log('done');
});