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

Source
npmnpm
Version
2.11.0
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

hex-dump

Simplisitc hex dump for browsers.

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 12 Nov 2015

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