MCPcopy
hub / github.com/mafintosh/why-is-node-running / normalizeFilePath

Function normalizeFilePath

index.js:99–101  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

97}
98
99function normalizeFilePath (filePath) {
100 return filePath.startsWith('file://') ? fileURLToPath(filePath) : filePath
101}
102
103function prepareStackTrace(error, stackTraces) {
104 return stackTraces.map(stack => ({

Callers 2

printStacksFunction · 0.85
formatFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…