Socket
Book a DemoInstallSign in
Socket

hex-dump

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex-dump

Simplistic hex dumps for browsers

latest
Source
npmnpm
Version
3.1.4
Version published
Maintainers
1
Created
Source

hex-dump

Simplisitc hex dump for browsers.

Features

  • shows byte offset, hex values and strings
  • entropy bar
  • text selection with .getSelection
  • highlights same values
  • lazily loads binaries of arbitrary sizes

Example

screenshot

var Dump = require('hex-dump');

var d = new Dump(chunks, length);
d.appendTo(document.body);

view on requirebin

Installation

$ npm install hex-dump

API

Dump(chunks, length)

  • chunks instance of abstract-chunk-store. The most efficient chunk size to use is 16.
  • length of the content

#appendTo(el)

#getSelection(cb)

If the user has selected some data, call cb with (err, buf), where buf is the slice of data selected.

License

MIT

FAQs

Package last updated on 04 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts