MCPcopy Index your code
hub / github.com/nodejs/node / createMatcher

Function createMatcher

lib/internal/fs/glob.js:112–125  ·  view source on GitHub ↗

* @param {string} pattern * @param {options} options * @returns {Minimatch}

(pattern, options = kEmptyObject)

Source from the content-addressed store, hash-verified

110 * @returns {Minimatch}
111 */
112function createMatcher(pattern, options = kEmptyObject) {
113 const opts = {
114 __proto__: null,
115 nocase: isWindows || isMacOS,
116 windowsPathsNoEscape: true,
117 nonegate: true,
118 nocomment: true,
119 optimizationLevel: 2,
120 platform: process.platform,
121 nocaseMagicOnly: true,
122 ...options,
123 };
124 return new (lazyMinimatch().Minimatch)(pattern, opts);
125}
126
127function cloneSet(values) {
128 const cloned = new SafeSet();

Callers 2

constructorMethod · 0.85

Calls 1

lazyMinimatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…