Skip to content

Add isUTF8#27

Merged
yassernasc merged 4 commits intomainfrom
isUtf8
Feb 27, 2026
Merged

Add isUTF8#27
yassernasc merged 4 commits intomainfrom
isUtf8

Conversation

@yassernasc
Copy link
Contributor

No description provided.

@yassernasc yassernasc requested a review from a team February 26, 2026 20:41
Copy link
Contributor

@kasperisager kasperisager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name it isUTF8() with the other name as an alias.

Copy link

@bavulapati bavulapati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % Kasper's comment.

@yassernasc yassernasc changed the title Add isUtf8 Add isUTF8 Feb 27, 2026

export function isEncoding(encoding: string): encoding is BufferEncoding

export function isUtf8(buffer: Buffer): boolean
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function isUtf8(buffer: Buffer): boolean
export function isUTF8(buffer: Buffer): boolean
export function isUtf8(buffer: Buffer): boolean

@yassernasc yassernasc merged commit dd4e224 into main Feb 27, 2026
3 checks passed
@yassernasc yassernasc deleted the isUtf8 branch February 27, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants