interface UniqueNameOptions {
    ignoreFileExtension?: boolean;
    suffix?: ((index: number) => string);
}

Properties

ignoreFileExtension?: boolean

Set to true to ignore the file extension when adding the suffix (when getting a unique directory name)

suffix?: ((index: number) => string)

A function that takes an index and returns a suffix to add to the file name, defaults to '(index)'

Type declaration

    • (index): string
    • Parameters

      • index: number

        The current index to add

      Returns string