Skip to main content

getSafeFilenamePreservingCase

Summary

Converts bad filename characters to underscores while preserving original casing. Sanitizes input for safe filesystem use without strict validation. Used for nested folder structure where case-sensitive names are desired. This function is designed for API Extractor output (valid identifiers) and applies minimal sanitization to ensure filesystem compatibility.

Signature

static getSafeFilenamePreservingCase(name: string): string;

Parameters

name

Type:string

Returns

Type:string Converts bad filename characters to underscores while preserving original casing. Sanitizes input for safe filesystem use without strict validation. Used for nested folder structure where case-sensitive names are desired.This function is designed for API Extractor output (valid identifiers) and applies minimal sanitization to ensure filesystem compatibility.