Skip to content

anzerr/fs.find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages