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): stringParameters:
| Parameter | Type | Description |
|---|---|---|
params | MakeFileNameParams | The parameters for making the file name. |
Returns: string — The file name with the extension appended.
Links to this page: