UNPKG

188 BJavaScriptView Raw
1/**
2 * @name base64Pad
3 * @description Adds padding characters for correct length
4 */
5export function base64Pad(value) {
6 return value.padEnd(value.length + (value.length % 4), '=');
7}