Noble Programming Mantra
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

b3b

0.0.1 • Public • Published

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

install

npm i b3b

Downloadsweekly downloads

4,323

version

0.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability