Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
index.js18 linesDownload Raw Back to picomatch
1'use strict';
2
3const pico = require('./lib/picomatch');
4const utils = require('./lib/utils');
5
6function picomatch(glob, options, returnState = false) {
7  // default to os.platform()
8  if (options && (options.windows === null || options.windows === undefined)) {
9    // don't mutate the original options object
10    options = { ...options, windows: utils.isWindows() };
11  }
12
13  return pico(glob, options, returnState);
14}
15
16Object.assign(picomatch, pico);
17module.exports = picomatch;
18 
codekingpro/portable-devtools · Team Ai