Debian Codegraph @

node/picomatch/index.js

raw
1 'use strict';
2
3 const pico = require('./lib/picomatch');
4 const utils = require('./lib/utils');
5
6 function 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
16 Object.assign(picomatch, pico);
17 module.exports = picomatch;