@whi/bytes-class

v0.1.0
An extension of Uint8Array

new Bytes( ... )

An extension of Uint8Array

Overview

Install

npm i @whi/bytes-class

Usage

import crypto from 'crypto';
import { Bytes } from '@whi/bytes-class';

const bytes = new Bytes( crypto.randomBytes( 32 ) );

bytes.toString()
// "5ec58f8e29ad1349898828eb4ad6ad5e012e0b046ae6a4c6052ad0fd781fa4da"

Contributing

See CONTRIBUTING.md

npm i @whi/bytes-class

Metadata

  • ISC
  • Whatever
  • Matthew Brisebois
  • released 10/29/2023

Downloads

Maintainers