@markssl/encoding
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Usage

import Encoding from '@markssl/encoding'

API

base64ToHex(b64: string): string

Converts a base64 string to a hex string.

bufToBase64(u8: Uint8Array): string

Converts a Uint8Array to a base64 string.

bufToHex(u8: Uint8Array): string

Converts a Uint8Array to a hex string.

hexToBuf(hex: string): Uint8Array

Converts a hex string to a Uint8Array.

numToHex(d: number): string

Converts a number to a hex string.

utf8ToHex(str: string): string

Converts a UTF-8 string to a hex string.

Readme

Keywords

Package Sidebar

Install

npm i @markssl/encoding

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

15 kB

Total Files

8

Last publish

Collaborators

  • murka