(p: string): boolean import {isAbsolutePosixPath} from 'svelte-docinfo/paths.js'; Whether a POSIX-form path is absolute — rooted (/src/x.ts) or drive-qualified
(C:/proj/x.ts).
Not node:path's isAbsolute, which is platform-flavored: on Linux it reads
a posixified Windows path like C:/proj/x.ts as relative. Everything here is
already in the internal POSIX form by contract, so the check has to cover both
shapes regardless of host.
p
stringreturns
boolean examples
isAbsolutePosixPath('/home/user/proj/foo.ts') // => true
isAbsolutePosixPath('C:/proj/foo.ts') // => true
isAbsolutePosixPath('src/lib/foo.ts') // => false
isAbsolutePosixPath('../sibling/foo.ts') // => false