Skip to content

getFileName

Gets the file name from the import(dot)meta(dot)url, converting it to a POSIX-style path.

Import:

import { getFileName } from 'obsidian-dev-utils/path';

Signature:

function getFileName(importMetaUrl: string): string

Parameters:

ParameterTypeDescription
importMetaUrlstringThe import(dot)meta(dot)url from which to extract the file name.

Returns: string — The POSIX-style file name.