2.0.1 • Published 6 years ago

deep-files v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

deep-files

Get flatten array of files in a directrory recursively.

Build Status npm codecov dependencies Status devDependencies Status code style: prettier license MIT

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)