b3b

ArrayBuffer / Buffer / base64 convert util

  • b3b

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
b3b
300.0.18 years ago8 years agoMinified + gzip package size for b3b in KB

Readme

b3b
buffer convert util

convert map

ArrayBuffer -------- Buffer
\                      /
 \                    /
   ----  base64  -----

api


- file:
buffer convert util
- author:
junmer
- description:
ArrayBuffer / Buffer / base64 convert util
convert arrayBuffer to buffer
- param: ab { ArrayBuffer }
arrayBuffer
- return: { buffer }
buffer
convert buffer to arrayBuffer
- param: buffer { buffer }
buffer
- return: { ArrayBuffer }
arrayBuffer
convert base64 string to buffer
- param: str { string }
base64 string
- return: { Buffer }
buffer
convert buffer to base64 string
- param: str { string|Buffer }
string or buffer
- return: { string }
base64 string
convert arraybuffer to base64 string
- param: ab { ArrayBuffer|Array }
ArrayBuffer or Array
- return: { string }
base64 string