@techor/glob
Version:
A human-friendly set of glob utilities
17 lines (12 loc) • 436 B
JavaScript
import fg from 'fast-glob';
import upath from 'upath';
function normalizeSource(source) {
return Array.isArray(source) ? source.map(upath.normalize) : upath.normalize(source);
}
function explorePathSync(source, options) {
return fg.sync(normalizeSource(source), options)[0];
}
function explorePathsSync(source, options) {
return fg.sync(normalizeSource(source), options);
}
export { explorePathSync, explorePathsSync };