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

Function isRelativeOrAbsolute

ark/aot/host.ts:59–60  ·  view source on GitHub ↗
(specifier: string)

Source from the content-addressed store, hash-verified

57]
58
59const isRelativeOrAbsolute = (specifier: string): boolean =>
60 /^\.{0,2}\//.test(specifier) || isAbsolute(specifier)
61
62export const createNodeHost = (opts?: NodeHostOptions): PrecompileHost => {
63 const resolveOptions: NapiResolveOptions = {

Callers 1

resolveFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected