Hexdump
data
Character shown for non-printable bytes in ASCII column
Terminal
$termuijs render hexdump
Installation
$ bunx termuijs add hexdump
Copies the source into src/components/hexdump/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Hexdump } from '@termuijs/widgets'ts
new Hexdump(data: Uint8Array, style?: Partial<Style>, opts?: HexdumpOptions,)API Reference
Hexdump
| Prop | Type | Required | Description |
|---|---|---|---|
data | Uint8Array | required | — |
bytesPerRow | number /** Character shown for non-printable bytes in ASCII column. Default: '.' */ placeholder?: string | optional | Bytes per row |