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

Function expand

deps/minimatch/index.js:123–132  ·  view source on GitHub ↗
(str, options = {})

Source from the content-addressed store, hash-verified

121 return parts;
122 }
123 function expand(str, options = {}) {
124 if (!str) {
125 return [];
126 }
127 const { max = exports2.EXPANSION_MAX } = options;
128 if (str.slice(0, 2) === "{}") {
129 str = "\\{\\}" + str.slice(2);
130 }
131 return expand_(escapeBraces(str), max, true).map(unescapeBraces);
132 }
133 function embrace(str) {
134 return "{" + str + "}";
135 }

Callers

nothing calls this directly

Calls 4

expand_Function · 0.85
escapeBracesFunction · 0.85
sliceMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…