1.0.6 • Published 6 years ago
scandir-sync v1.0.6
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)