edgeport - v1.0.3
    Preparing search index...

    Function toBase32

    • Encodes bytes as RFC 4648 base32 without padding.

      NATS uses unpadded uppercase base32 for every nkey string; this is the inverse of fromBase32.

      Parameters

      • bytes: Uint8Array

        The bytes to encode.

      Returns string

      The base32 string (uppercase, no = padding).

      1.0.0

      import { toBase32 } from 'edgeport/nats';
      const s = toBase32(new Uint8Array([0, 1, 2]));