@technobuddha > library > String > Operations
Type Alias: FilenameOptions
ts
type FilenameOptions = {
disambiguate?: number;
maxLength?: number;
replacement?: string;
separator?: string;
};Defined in: to-filename.ts:16
Options for the toFilename function
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
disambiguate? | number | number of characters to preserve at the end of the filename when truncated (for disambiguation) | src/to-filename.ts:22 |
maxLength? | number | the file name will be truncated to this length | src/to-filename.ts:18 |
replacement? | string | character to use to replace "bad" characters | src/to-filename.ts:20 |
separator? | string | string to separate the main section from the disambiguated section | src/to-filename.ts:24 |