MCPcopy Create free account
hub / github.com/Effect-TS/effect / underBase

Function underBase

packages/ui/devtools/src/node/DevToolsVite.ts:234–235  ·  view source on GitHub ↗
(base: string, path: string)

Source from the content-addressed store, hash-verified

232
233// The path under `base`, which ends in `/`, keeping that `/`.
234const underBase = (base: string, path: string): string | undefined =>
235 path.startsWith(base) ? path.slice(base.length - 1) : undefined
236
237// On a workbench page, `?bare` keeps everything but the overlay's iframe.
238const bare = (base: string): string =>

Callers 1

pluginFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected