Sign in
apache
/
pouchdb
/
refs/heads/smaller-errors-code
/
.
/
packages
/
pouchdb-binary-utils
/
src
/
arrayBufferToBase64-browser.js
blob: 65100f203bed6149de6ee0f2883712ff46f4e3c8 [
file
] [
log
] [
blame
]
import
arrayBufferToBinaryString from
'./arrayBufferToBinaryString'
;
import
{
btoa
}
from
'./base64'
;
function
arrayBufferToBase64
(
buffer
)
{
return
btoa
(
arrayBufferToBinaryString
(
buffer
));
}
export
default
arrayBufferToBase64
;