Skip to content

makeFileName

Makes a file name by appending an extension to a given file name. If the extension is empty, the file name is returned as is.

Import:

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

Signature:

function makeFileName(params: MakeFileNameParams): string

Parameters:

ParameterTypeDescription
paramsMakeFileNameParamsThe parameters for making the file name.

Returns: string — The file name with the extension appended.


Links to this page: