Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
/**
* Replaces all standard vowels (a, e, i, o, u, case-insensitive) in the input string with the specified mask character.
* @param input The string to process.
* @param mask The character to replace vowels with.
* @returns The processed string with vowels replaced.
* @throws {Error} If mask is not a non-empty string.
*/
export function muteVowels(input: string, mask: string): string {
export function muteVowels(input: string, mask: string = '*'): string {
if (typeof input !== 'string') {
throw new Error('Input must be a string');
}
Expand Down