Skip to content

Feature: base64url support #31

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

Closed
wants to merge 2 commits into from

Conversation

Hexagon
Copy link

@Hexagon Hexagon commented Dec 7, 2021

I couln't find any good libraries for encoding/decoding both base64 and base64url on npm. Would be sweet if you could pull this (and possibly bump a major), so that your package supports both modes.

Will release @hexagon/base64 for my own use, but I can deprecate that if you pull this.

base64
encode(data);
decode("BASE64URLSTRING");

base64url
encode(data, true);
decode("BASE64URLSTRING", true);

@Hexagon
Copy link
Author

Hexagon commented Jun 19, 2022

This plus base64 / base64url validation is available in @hexagon/base64

@Hexagon Hexagon closed this Jun 19, 2022
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.

1 participant