Skip to main content

sanitizeFilename

@webda/utils


Function: sanitizeFilename()

sanitizeFilename(name): string

Defined in: packages/utils/src/stream.ts:9

Replace every character in name that is not alphanumeric or _ with _.

Parameters​

name​

string

The original string to sanitize.

Returns​

string

A filename-safe version of name.