Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base64 encoding and decoding functions #145

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Add base64 encoding and decoding functions #145

merged 1 commit into from
Oct 16, 2023

Conversation

Mrtenz
Copy link
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
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
19 checks passed
@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