0.1.0 • Published 5 years ago
match-file-tree v0.1.0
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.
0.1.0
5 years ago