0.1.0 • Published 2 years ago

@whi/bytes-class v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

npm.io

new Bytes( ... )

An extension of Uint8Array

npm.io npm.io npm.io

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