MCPcopy Create free account
hub / github.com/babel/babel / normalize

Function normalize

test/runtime-integration/node.cjs:99–106  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

97}
98
99function normalize(output) {
100 const root = path.resolve(__dirname, "../..");
101 let next;
102 while ((next = output.replace(root, "<ROOT>")) !== output) {
103 output = next;
104 }
105 return output;
106}

Callers 1

testFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by 1

testFunction · 0.56