brianloveswords / base64url

For encoding and decoding base64url!
MIT License
225 stars 44 forks source link

Deprecate package #59

Open GustavoOS opened 6 months ago

GustavoOS commented 6 months ago

I see this package is about encoding and decoding base 64. Node itself has this functionality using the Buffer API.

Shouldn't this package be marked as deprecated, as the last publish is now 6 years old?

benjick commented 3 months ago

I used the Buffer API, which wasn't URL-safe + didn't handle UTF-8 well so I went with this package. This package seems to work really well 👍

glebbash commented 3 months ago

Not sure what's the problem with utf8 you encountered @benjick but this worked fine for me: Buffer.from(...).toString("base64url")

4nur4g commented 3 weeks ago

I wonder, how's this library different from encodeURIComponent function provided by node itself? Why should one use this library over using in build methods such as encodeURIComponent?