match-file-tree
v0.1.0
Published
Lightweight regex based file tree traversal
Downloads
3
Maintainers
Readme
match-file-tree
A simple alternative to globby
when a regex will suffice.
const matchFileTree = require('match-file-tree');
matchFileTree(/\.js$/).then(results => console.log(result));
Usage
const matchFileTree = require('match-file-tree');
const regex = /\.jsx?$/;
const rootDirectory = process.cwd(); // The default
const promise = matchFileTree(regex, rootDirectory);
promise.then(files => console.log(files));
License
Copyright © 2018 by Josh Junon. Released under the MIT License.