2.0.1 • Published 6 years ago
deep-files v2.0.1
deep-files
Get flatten array of files in a directrory recursively.
Install
Install with npm
npm i deep-files
Uses
This module takes two arguments, first of which is file path and second is a glob pattern, and returns array of matching files. See the example below
const deepFiles = require('deep-files')
const files = deepFiles('dir/', "*.{njk,html,md}")
console.log(files)