UNPKG

soundcloud-sync

Version:

Sync your SoundCloud likes to local files

14 lines (13 loc) 409 B
/** * Sanitises filenames by removing/replacing illegal characters. * Based on sanitize-filename package but implemented natively. * * Handles: * - Illegal chars: /\?<>:\*|" * - Control chars: C0 (0x00-0x1f) & C1 (0x80-0x9f) * - Reserved names: CON, PRN, AUX, etc. * - Max length: 255 bytes */ export default function sanitiseFilename(input: string, options?: { replacement?: string; }): string;