@qix/base64url-arraybuffer
v1.0.0
Published
Encode/decode Base64URL data into ArrayBuffers
Downloads
16
Readme
Base64URL-ArrayBuffer
Encode/decode Base64URL data into ArrayBuffers
Based on original base64-arraybuffer by @niklasvh
Getting Started:
TODO:
- Submit to NPM
- Submit to CDNJS
The library encodes and decodes Base64URL to and from ArrayBuffers
Node.js/AMD
- encode(buffer) - Encodes
ArrayBuffer
into Base64URL string - decode(str) - Decodes Base64URL string to
ArrayBuffer
Browser
Just add <script src="base64url-arraybuffer.js"></script>
to your HTML file.
- window.base64url.encode(buffer) - Encodes
ArrayBuffer
into Base64URL string - window.base64url.decode(str) - Decodes Base64URL string to
ArrayBuffer
License
Copyright (c) 2017 Yuriy Ackermann
Copyright (c) 2012 Niklas von Hertzen
Licensed under the MIT license.