Open mhofman opened 9 months ago
encodeBase64 and decodeBase64 use the JS implementation on Node.js when there exists a native implementation using Buffer.
encodeBase64
decodeBase64
Buffer
feature test the Buffer global and use it, or rely on exports to only load the Buffer based implementation on Node
exports
None?
Much faster than the JS implementation
Yes
Not quite sure if there are any.
What is the Problem Being Solved?
encodeBase64
anddecodeBase64
use the JS implementation on Node.js when there exists a native implementation usingBuffer
.Description of the Design
feature test the
Buffer
global and use it, or rely onexports
to only load theBuffer
based implementation on NodeSecurity Considerations
None?
Scaling Considerations
Much faster than the JS implementation
Test Plan
Yes
Upgrade Considerations
Not quite sure if there are any.