MCPcopy
hub / github.com/GitbookIO/gitbook / normalize

Function normalize

lib/utils/location.js:38–40  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

36
37// Normalize a path to be a link
38function normalize(s) {
39 return path.normalize(s).replace(/\\/g, '/');
40}
41
42/**
43 * Flatten a path, it removes the leading "/"

Callers 4

flattenFunction · 0.85
toAbsoluteFunction · 0.85
relativeFunction · 0.85
areIdenticalPathsFunction · 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…