flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
21
BACK_BACK/node_modules/parcel-bundler/lib/utils/glob.js
generated
vendored
Executable file
21
BACK_BACK/node_modules/parcel-bundler/lib/utils/glob.js
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue