UNPKG

291 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util-crypto authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3
4/**
5 * @name base64Pad
6 * @description Adds padding characters for correct length
7 */
8export function base64Pad(value) {
9 return value.padEnd(value.length + value.length % 4, '=');
10}
\No newline at end of file