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

Function isAbsolute

browser/src/path.ts:7–9  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

5const EXTNAME_REGEX = /\.[^.]+$/;
6
7export function isAbsolute(path: string): boolean {
8 return ABSOLUTE_PATH_REGEX.test(path);
9}
10
11export function isRelative(path: string): boolean {
12 return RELATIVE_PATH_REGEX.test(path);

Callers 1

resolveFunction · 0.70

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…