MCPcopy Create free account
hub / github.com/arktypeio/arktype / fileName

Function fileName

ark/fs/fs.ts:113–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 dirname(filePath(caller({ methodName: "dirOfCaller", upStackBy: 1 }).file))
112
113export const fileName = (): string => fileOfCaller()
114
115export const dirName = (): string => dirOfCaller()
116

Callers 3

cli.tsFile · 0.90
functions.test.tsFile · 0.90
shared.tsFile · 0.90

Calls 1

fileOfCallerFunction · 0.85

Tested by

no test coverage detected