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 '@mnaoumov/typescript-lib/path';

Signature:

function makeFileName(params: MakeFileNameParams): string

Parameters:

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: