Skip to content

relativePathToResourceUrl

Converts a relative path to a resource URL.

Import:

import { relativePathToResourceUrl } from '@mnaoumov/obsidian-lib/resource-url';

Signature:

function relativePathToResourceUrl(params: RelativePathToResourceUrlParams): string

Parameters:

Parameter Type Description
params RelativePathToResourceUrlParams The parameters for the conversion.

Returns: string — The resource URL.


Links to this page: