@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
| Parameter | Type | Description |
|---|---|---|
input | string | The string to escape |
options | FilenameOptions | see FilenameOptions |
Returns
string
the file name