MCPcopy Create free account
hub / github.com/anomalyco/opencode / fromPathname

Function fromPathname

packages/console/app/src/lib/language.ts:184–186  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

182}
183
184export function fromPathname(pathname: string) {
185 return parseLocale(fix(pathname).split("/")[1])
186}
187
188export function fromDocsPathname(pathname: string) {
189 const next = fix(pathname)

Callers 3

onRequestFunction · 0.90
stripFunction · 0.85
localeFromRequestFunction · 0.85

Calls 2

parseLocaleFunction · 0.70
fixFunction · 0.70

Tested by

no test coverage detected