Skip to content

resolvePathFromRoot

Resolves a path relative to the root folder of the project.

Import:

import { resolvePathFromRoot } from 'obsidian-dev-utils/script-utils/root';

Signature:

function resolvePathFromRoot(params: ResolvePathFromRootParams): string | null

Parameters:

ParameterTypeDescription
paramsResolvePathFromRootParamsThe parameters for the function.

Returns: string | null — The resolved absolute path.


Links to this page: