MCPcopy Index your code
hub / github.com/tinyplex/tinybase / normalizePath

Function normalizePath

test/e2e/doc-shots.test.ts:11–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

9import {getDocShotMap} from './doc-shots.ts';
10
11const normalizePath = (path: string): string => path.replace(/\/+$/, '') || '/';
12const FRAMED_DOC_SHOT_MIN_HEIGHT = 10_000;
13const DOC_SHOT_VIEWPORT = {width: 1440, height: 2400};
14

Callers 1

expectDocShotFunction · 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…