0.1.0 • Published 5 years ago

match-file-tree v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

match-file-tree CircleCI

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.