UNPKG

@velcro/resolver

Version:

Resolve references to absolute urls using the node module resolution algorithm using an generic host interface

11 lines 734 B
import { Decoder } from './decoder'; import { PackageJson } from './types'; export declare function ensureTrailingSlash(pathname: string): string; export declare function parseBufferAsPackageJson(decoder: Decoder, content: ArrayBuffer, spec: string): PackageJson; export declare function getFirstPathSegmentAfterPrefix(child: URL, parent: URL): string; export declare function basename(path: string, ext?: string): string; export declare function extname(path: string): string; export declare function dirname(path: string): string; export declare function join(initialSegment: string, ...pathSegments: string[]): string; export declare function resolve(...pathSegments: string[]): string; //# sourceMappingURL=util.d.ts.map