MCPcopy
hub / github.com/rollup/rollup / isAbsolute

Function isAbsolute

src/utils/path.ts:4–6  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

2const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
3
4export function isAbsolute(path: string): boolean {
5 return ABSOLUTE_PATH_REGEX.test(path);
6}
7
8export function isRelative(path: string): boolean {
9 return RELATIVE_PATH_REGEX.test(path);

Callers 10

isNotAbsoluteExternalFunction · 0.90
relativeIdFunction · 0.90
isPathFragmentFunction · 0.90
getMatcherStringFunction · 0.90
resolveIdFunction · 0.90

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…