Skip to content

MgowanoJr/hex-dump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

101 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simplisitc hex dump for browsers

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 93.3%
  • Makefile 4.3%
  • CSS 2.4%