MCPcopy
hub / github.com/prisma/prisma / dirname

Function dirname

helpers/compile/plugins/fill-plugin/fillers/path.ts:21–24  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

19}
20
21export function dirname(path: string) {
22 const parts = path.split('/')
23 return parts.slice(0, -1).join('/')
24}
25
26export const sep = '/'
27export const delimiter = ':'

Callers 3

getUrlBasePathFunction · 0.85
test.tsFile · 0.85
parseFunction · 0.85

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected