function encode_base64_slow(data, padding = true) {
  return encode_baseX(data, charset.base64,
    ...padding ? ['=', 4] : []
  )
}
/**
 * Encode data to base64 using the `encode_baseX` function in this module. This is not recommended when it comes to performance since your platform have faster native functions for working with base64. Hence I also provide `encode_base64_fast` which uses the faster native function on your platform. This function is mostly provided as an example on how to use `encode_baseX` and also to be able to test it on base64 to see that it works as expected.
 * @param {(ArrayBuffer|ArrayBufferView|Buffer|number[])} data The data to convert, an ArrayBuffer, TypedArray, DataView, Node.js Buffer or an Array with unsigned bytes.
 * @param {boolean} [padding=true] Whether to use padding or not, it's standard to use it.
 * @returns {string} base64.
 */
Encode data to base64 using the `encode_baseX` function in this module. This is not recommended when it comes to performance since your platform have faster native functions for working with base64. Hence I also provide `encode_base64_fast` which uses the faster native function on your platform. This function is mostly provided as an example on how to use `encode_baseX` and also to be able to test it on base64 to see that it works as expected.
@param {(ArrayBuffer|ArrayBufferView|Buffer|number[])} data The data to convert, an ArrayBuffer, TypedArray, DataView, Node.js Buffer or an Array with unsigned bytes.
@param {boolean} [padding=true] Whether to use padding or not, it's standard to use it.
@returns {string} base64.
Encode data to base64 using the ` encode_baseX ` function in this module . This is not recommended when it comes to performance since your platform have faster native functions for working with base64 . Hence I also provide ` encode_base64_fast ` which uses the faster native function on your platform . This function is mostly provided as an example on how to use ` encode_baseX ` and also to be able to test it on base64 to see that it works as expected . @param { ( ArrayBuffer|ArrayBufferView|Buffer|number [] ) } data The data to convert an ArrayBuffer TypedArray DataView Node . js Buffer or an Array with unsigned bytes . @param { boolean } [ padding = true ] Whether to use padding or not it ' s standard to use it . @returns { string } base64 .
function encode_base64_slow(data, padding = true) {
  return encode_baseX(data, charset.base64,
    ...padding ? ['=', 4] : []
  )
}
function encode_base64_slow ( data , padding = true ) { return encode_baseX ( data , charset . base64 , ... padding ? [ '=' , 4 ] : [ ] ) }
Encode data to base64 using the `encode_baseX` function in this module.
Encode data to base64 using the ` encode_baseX ` function in this module .