0.0.5 • Published 10 years ago

uupaa.hexdump.js v0.0.5

Weekly downloads
90
License
MIT
Repository
github
Last release
10 years ago

HexDump.js Build Status

npm

Hex dump

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/HexDump.js"></script>
<script>
HexDump([1,2,3], {
    title: "Example",
    begin: 0,
    end:   3,
    rule: {
        values1: { style: "color:red",  values: [0xEA, 0xE6, 0xAA, 0xB0] },
        values2: { style: "color:blue", values: [0x5E, 0x46, 0x43, 0x2C] },
        range1:  { style: "color:green", begin: 8, end: 10 },
        range2:  { style: "background-color:yellow", begin: 0x23 },
        valuesWithRange0x50: { bold: true, style: "color:blue", begin: 0x1a, values: [0x50] },
        valuesWithRange0x51: { bold: true, style: "color:blue", begin: 0x1a, values: [0x51] },
        valuesWithRange0x52: { bold: true, style: "color:blue", begin: 0x1a, values: [0x52] },
    }
});
</script>

WebWorkers

importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/HexDump.js");

...

Node.js

require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/HexDump.js");

...