Skip to content

Zenfeder/scandir-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scandir-sync

Install

npm install scandir-sync

Usage

    const scan = require('scandir-sync')
    const basePath = "./dist"

    const result = scan({ 
        rootDir: basePath,
        ignoreFile: /\.txt$/, 
        ignoreDir:  /css$/
    })
    
    // get a array of all the scanned directorys path
    console.log(result.dirsPath)

    // get a array of all the scanned files path
    console.log(result.filesPath)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published