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

docs: Add new methods to binary-data.md #14044

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Sep 19, 2024

A couple of my proposals (x, x) have made some thing a bit easier for converting between various representations of binary data: now there's body.bytes() for getting a Uint8Array, and uint8Array.toBase64() and friends for converting to/from base64/hex.

These are available in Bun as of #11104 and https://bun.sh/blog/bun-v1.1.22#uint8array-tobase64, so the docs can be updated to refer to them.

Also a couple of drive-by fixes while I was here.

@Jarred-Sumner Jarred-Sumner merged commit 260a0d1 into oven-sh:main Sep 19, 2024
1 check was pending
@Jarred-Sumner
Copy link
Collaborator

Thank you!

@bakkot bakkot deleted the patch-1 branch September 19, 2024 20:39
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