Skip to content

Feature: base64url support#31

Closed
Hexagon wants to merge 2 commits intoniklasvh:masterfrom
Hexagon:feature/base64url-support
Closed

Feature: base64url support#31
Hexagon wants to merge 2 commits intoniklasvh:masterfrom
Hexagon:feature/base64url-support

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