Skip to main content
Module

x/lmdbx/deps.ts>fileURLToPath

Wrapper for libmdbx
Latest
function fileURLToPath
import { fileURLToPath } from "https://deno.land/x/lmdbx@v0.5.0/deps.ts";

This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.

Parameters

path: string | URL

The file URL string or URL object to convert to a path.

Returns

string

The fully-resolved platform-specific Node.js file path.