Skip to content

Add base64 encoding and decoding functions#145

Merged
Mrtenz merged 1 commit intomainfrom
mrtenz/base-64
Oct 16, 2023
Merged

Add base64 encoding and decoding functions#145
Mrtenz merged 1 commit intomainfrom
mrtenz/base-64

Conversation

@Mrtenz
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz commented Oct 13, 2023

This adds two functions: bytesToBase64 and base64ToBytes, which can be used to encode and decode data from Uint8Array to strings. These functions are essentially wrappers around @scure/base which was already an indirect dependency. This way packages don't have to add an explicit dependency on @scure/base.

@Mrtenz Mrtenz requested a review from a team as a code owner October 13, 2023 10:20
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding left a comment

Choose a reason for hiding this comment

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

@Mrtenz Should this have a type like we have Hex?

@Mrtenz Mrtenz merged commit 8732f00 into main Oct 16, 2023
@Mrtenz Mrtenz deleted the mrtenz/base-64 branch October 16, 2023 07:53
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.

2 participants