@hyperdivision/ui
UI Components for Heimdall
Usage
API
var pretty = new PrettyHex({...attrs}, text)
Nice way to show hex, blobs, base64, keys or other long encoded binary values in
constrained text flows.
pretty.element
Read-only reference to a HTMLSpanElement
var img = new Image({src, ...attrs})
Create a new image component. This is different from the <img /> tag since it
supports binary encodings of images in addition to normal URLs.
img.element
Read-only reference to a HTMLImageElement
img.src = buffer
img.src = dataUrl
img.src = blob
Update the image displayed. Can be a valid image Buffer, Blob or data URL.
Install
npm install @hyperdivision/ui
License
ISC