Skip to content

@technobuddha > library > String > Operations

Function: toFilename()

ts
function toFilename(input: string, options: FilenameOptions): string;

Defined in: to-filename.ts:35

Convert a string so that it can be used as a filename

Parameters

ParameterTypeDescription
inputstringThe string to escape
optionsFilenameOptionssee FilenameOptions

Returns

string

the file name