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

Function specifierOf

ark/aot/host.ts:648–651  ·  view source on GitHub ↗
(importer: string, file: string)

Source from the content-addressed store, hash-verified

646}
647
648export const specifierOf = (importer: string, file: string): string => {
649 const path = relative(dirname(importer), file).split("\\").join("/")
650 return /^\.\.?(?:\/|$)/.test(path) ? path : `./${path}`
651}

Callers 4

configFirstOfMethod · 0.90
configuredOfMethod · 0.90
inputExpressionOfMethod · 0.90
buildPerturbedFunction · 0.90

Calls 1

testMethod · 0.80

Tested by 1

buildPerturbedFunction · 0.72