UNPKG

@augment-vir/common

Version:

A collection of augments, helpers types, functions, and classes for any JavaScript environment.

11 lines (10 loc) 480 B
/** * Sanitize a file name for use within Linux, macOS, or Windows file systems. This removes all file * path separators. If you wish to retain the separators, split the path parts up before using this * function. * * @category Path : Common * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ export declare function sanitizeFileName(original: string | null | undefined): string | undefined;