taglib-wasm
Version:
TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps
14 lines • 621 B
TypeScript
/**
* Cross-platform path utilities that work in Deno, Node, Bun, and browsers
* without depending on @std/path or node:path.
*/
/**
* Convert a file:// URL to an OS filesystem path.
* On Windows, url.pathname returns "/C:/path" — this strips the leading slash.
*/
export declare function fileUrlToPath(url: URL): string;
/** Extract the filename from a path (handles both / and \ separators). */
export declare function basename(path: string): string;
/** Join path segments with the OS-appropriate separator. */
export declare function joinPath(...segments: string[]): string;
//# sourceMappingURL=path.d.ts.map