worktop/base64
See original GitHub issueThis is labeled as <kbd>maybe</kbd> because 2/3 of the exports listed as just aliases of built-in methods. However, this may still be useful because, personally, I rarely remember the atob
-vs-btoa
direction on the first try 😅
Exports:
encode
(alias forbtoa
)decode
(alias foratob
)toURL
– URL-safe Base64 value
Another possibility is that only toURL
is added to worktop/utils
as toBase64URL
& then users are left to remember btoa
-vs-atob
on their own 😬
I think I personally prefer a base64
module, even if it’s somewhat trivial. Thoughts?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
worktop/base64.d.ts at master · lukeed/worktop · GitHub
The next generation web framework for Cloudflare Workers - worktop/base64.d.ts at master · lukeed/worktop.
Read more >Luke Edwards on Twitter: "Released `worktop@0.2.0` yesterday ...
Announcing `worktop`, the next-gen web framework for Cloudflare Workers!! It's like a Polka/Express/Fastify, but for the Workers platform 1st-class ...
Read more >worktop - npm
View worktop/base64 API documentation. The worktop/base64 submodule contains a few utilities related to the Base 64 encoding.
Read more >worktop/readme.md - UNPKG
[View `worktop/base64` API documentation](/docs/module.base64.md) -->. 177. 178, The `worktop/base64` submodule contains a few utilities related to the ...
Read more >Manager.Add does not start Cache after Manager has already ...
(Question) - FFMediaToolkit · worktop/base64 - TypeScript worktop · "Live Reload is not possible as body or head tag or defined tag is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ended up going with the name
base64url
for thetoURL
/encodeURL
function. Thanks!I would probably use it, because, like you, I don’t usually get it right on the first try either 😅 so I usually make a base64 module to alias the built-in.