2.0.0 • Published 8 years ago

hexpp v2.0.0

Weekly downloads
68
License
MIT
Repository
github
Last release
8 years ago

hexpp

Pretty print buffers in the same format as hexdump -C

var hexpp = require('hexpp')
var binary = new Buffer('hello, binary world!')

console.log(hexpp(binary))

output:

00000000  68 65 6c 6c 6f 2c 20 62  69 6e 61 72 79 20 77 6f  |hello, binary wo|
00000010  72 6c 64 21                                       |rld!|

hexpp(buffer, line, showLength)

buffer is a binary buffer,

if line is provided, it will be added to the line number (left column) you should use this if you are printing a stream of buffers with more than one call to hexpp.

if showLength is true, return a final line with the length of the total buffer in the line column.

License

MIT

2.0.0

8 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago