b3b
v0.0.1
Published
ArrayBuffer / Buffer / base64 convert util
Downloads
31,664
Readme
b3b
buffer convert util
convert map
ArrayBuffer -------- Buffer
\ /
\ /
---- base64 -----
api
0
file:
buffer convert util
author:
junmer
description:
ArrayBuffer / Buffer / base64 convert util
ab2b (alias: arrayBufferToBuffer )
convert arrayBuffer to buffer
param:
ab
{ ArrayBuffer }arrayBuffer
return: { buffer }
buffer
b2ab (alias: bufferToArrayBuffer )
convert buffer to arrayBuffer
param:
buffer
{ buffer }buffer
return: { ArrayBuffer }
arrayBuffer
a2b (alias: base64ToBuffer )
convert base64 string to buffer
param:
str
{ string }base64 string
return: { Buffer }
buffer
b2a (alias: bufferToBase64 )
convert buffer to base64 string
param:
str
{ string|Buffer }string or buffer
return: { string }
base64 string
b2b (alias: bytesToBase64 )
convert arraybuffer to base64 string
param:
ab
{ ArrayBuffer|Array }ArrayBuffer or Array
return: { string }
base64 string