globelet
v1.0.0
Published
Extends globby with support for directory
Downloads
6
Readme
💧 Globelet
Extends globby with support for directory
Installation
npm install globelet
Usage
└── 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']
});