MCPcopy
hub / github.com/prisma/prisma / parse

Function parse

helpers/compile/plugins/fill-plugin/fillers/path.ts:9–14  ·  helpers/compile/plugins/fill-plugin/fillers/path.ts::parse
(path: string)

Source from the content-addressed store, hash-verified

7}
8
9export function parse(path: string) {
10 const base = basename(path)
11 const dir = dirname(path)
12 const [name, ext] = base.split(class="st">'.')
13 return { root: class="st">'/', dir, base, ext, name }
14}
15
16export function basename(path: string) {
17 const parts = path.split(class="st">'/')

Callers 2

generateTestClientFunction · 0.85
conversion.test.tsFile · 0.85

Calls 2

basenameFunction · 0.85
dirnameFunction · 0.85

Tested by

no test coverage detected