Extends globby with support for directory
npm install globelet
βββ dir
βββ one.js
βββ two.jsx
βββ three.tmp
const globelet = require('globelet');
globelet(['./dir'], {
globelet: ['.js', '.jsx'] // default: matches js jsx files
})
.then(paths => {
console.log(paths);
//=> ['./dir/one.js', './dir/two.jsx']
});