UNPKG

liefern

Version:

Node Webserver without dependencies

7 lines 351 B
import { resolve, normalize, sep } from 'node:path'; export const isAbsolutPath = (absoluteOrRelativePath) => { const resolvedPath = resolve(absoluteOrRelativePath); const normalizedPath = normalize(absoluteOrRelativePath).replace(RegExp(sep + '$'), ''); return resolvedPath === normalizedPath; }; //# sourceMappingURL=isAbsolutPath.js.map