scandir-sync

1.0.6 • Public • Published

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)

Package Sidebar

Install

npm i scandir-sync

Weekly Downloads

1

Version

1.0.6

License

ISC

Last publish

Collaborators

  • zenfeder