UNPKG

@polkadot/util-crypto

Version:
11 lines (10 loc) 217 B
/** * @name base64Trim * @description Trims padding characters */ export function base64Trim(value) { while (value.length && value.endsWith('=')) { value = value.slice(0, -1); } return value; }