Skip to content

dominictarr/arraybuffer-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arraybuffer-base64

Convert an ArrayBuffer to base64

example

var toBase64 = require('arraybuffer-base64')

console.log(toBase64(window.crypto.getRandomValues(new Uint8Array(32))))

This only works in the browser, and converts works by converting to a binary string and then using the btoa function, but it's the minimum code for a base64 conversion.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published