hensei-web/node_modules/parcel-bundler/src/utils/glob.js
2020-09-11 06:44:42 -07:00

18 lines
393 B
JavaScript

const isGlob = require('is-glob');
const fastGlob = require('fast-glob');
function normalisePath(p) {
return p.replace(/\\/g, '/');
}
exports.isGlob = function(p) {
return isGlob(normalisePath(p));
};
exports.glob = function(p, options) {
return fastGlob(normalisePath(p), options);
};
exports.glob.sync = function(p, options) {
return fastGlob.sync(normalisePath(p), options);
};