Skip to content

hexToBytes ​

hexToBytes ​

Converts a hex string (even or odd length) to a Uint8Array. Odd-length strings are left-padded with a zero nibble.

ts
function hexToBytes(
	value: string,
): Uint8Array

Parameters

  • value: string

Released under the MIT License.