UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

9 lines 442 B
/** * Decodes a base64 or base64url string into a Uint8Array. * @param {string} input - The string to decode. * @param {boolean} [urlSafe=false] - Whether the input is base64url. * @returns {Uint8Array} The decoded bytes. * @throws {Error} If input is not valid base64/base64url or no decoder is available. */ export default function base64Decode(input: string, urlSafe?: boolean): Uint8Array; //# sourceMappingURL=base64Decode.d.ts.map