codekingpro/portable-devtools
115k
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 