All Projects → jhermsmeier → hxd

jhermsmeier / hxd

Licence: MIT license
Speedy colored hexdump

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hxd

Midas
A web framework for Gleam, Midas makes shiny things.
Stars: ✭ 137 (+315.15%)
Mutual labels:  hex
Elixir Json
Native JSON library for Elixir
Stars: ✭ 216 (+554.55%)
Mutual labels:  hex
Xprof
A visual tracer and profiler for Erlang and Elixir.
Stars: ✭ 246 (+645.45%)
Mutual labels:  hex
Hexed
Windows console-based hex editor
Stars: ✭ 145 (+339.39%)
Mutual labels:  hex
Number
ActionView::Helpers::NumberHelper for Elixir
Stars: ✭ 186 (+463.64%)
Mutual labels:  hex
Tints And Shades
🌈 Display tints and shades of a given hex color in 10% increments.
Stars: ✭ 228 (+590.91%)
Mutual labels:  hex
Intelhex
Python IntelHex library
Stars: ✭ 116 (+251.52%)
Mutual labels:  hex
serde with
This crate provides custom de/serialization helpers to use in combination with serde's `with`-annotation and with the improved `serde_as`-annotation.
Stars: ✭ 392 (+1087.88%)
Mutual labels:  hex
Civitas
Civitas is an empire-building game written in Javascript with the help of the jQuery library.
Stars: ✭ 207 (+527.27%)
Mutual labels:  hex
Neuron
A GraphQL client for Elixir
Stars: ✭ 244 (+639.39%)
Mutual labels:  hex
Table rex
An Elixir app which generates text-based tables for display
Stars: ✭ 161 (+387.88%)
Mutual labels:  hex
Jscolor
JavaScript color picker with opacity (alpha channel) and customizable palette. Single file of plain JS with no dependencies.
Stars: ✭ 182 (+451.52%)
Mutual labels:  hex
Dynamiccolor
Yet another extension to manipulate colors easily in Swift and SwiftUI
Stars: ✭ 2,677 (+8012.12%)
Mutual labels:  hex
Gradstop
JavaScript micro library to generate gradient color stops 🏳️‍🌈
Stars: ✭ 144 (+336.36%)
Mutual labels:  hex
Alfred-Colors-workflow
hex <=> rgb <=> hsl
Stars: ✭ 28 (-15.15%)
Mutual labels:  hex
Heksa
CLI hex dumper with colors
Stars: ✭ 133 (+303.03%)
Mutual labels:  hex
Ecto mnesia
Ecto adapter for Mnesia Erlang term database.
Stars: ✭ 223 (+575.76%)
Mutual labels:  hex
monobit
Tools for working with monochrome bitmap fonts
Stars: ✭ 124 (+275.76%)
Mutual labels:  hex
hext
Markup language and tool for generating binary files
Stars: ✭ 23 (-30.3%)
Mutual labels:  hex
Hex
🔮 Futuristic take on hexdump, made in Rust.
Stars: ✭ 242 (+633.33%)
Mutual labels:  hex

hxd

npm npm license npm downloads

NOTE

You might have ended up here looking for the hex editor HxD.
Due to this naming conflict, this package will be renamed soon.

screenshot

Install via npm

$ npm install --global hxd

CLI Usage

Usage: hxd [options] [file]

Options

  -h, --help      Display help
  -v, --version   Display version number

  -s, --start     Start reading at the given offset
  -e, --end       Read until the given offset
  -l, --length    Read "length" bytes from start

  --color         Render output with color
  --no-color      Force-disable color output
  --prefix        Prefix output lines with a given value
# Hexdump a given file to stdout
$ hxd filename.bin
# Or pipe to it via stdin
$ cat filename.bin | hxd
# Start, and/or end at a given offset
$ hxd -s 512K filename.bin
# This also works with hex numbers
$ hxd -s 0x200 -e 0x400 filename.bin
# Read 1024 bytes from a given offset
$ hxd -s 0xDEAD -l 1K filename.bin
# Read the last 1024 bytes of a file
$ hxd -s -1024 filename.bin

Module Usage

var Hxd = require('hxd')
var hexStream = new Hxd({
  // Deduplicate lines and print "* {lineCount}"
  dedupe: true,
  // Render line numbers (in hexadecimal)
  lineNumbers: true,
  // Render ASCII
  ascii: true,
  // Output with colors (ANSI)
  colors: false,
  // Start line offset
  offset: 0,
})

fs.createReadStream( filename )
  .pipe( hexStream )
  .pipe( process.stdout )

Todo

  • Add command line flags for options, usage & version
  • Add command line flags for start, end, length
  • Add color support (greyed out zeros, line numbers, etc.)
  • Add a screenshot or output samples to the README
  • Display offset in bytes of repetitions instead of line count
  • Improve performance even further
  • Add tests
  • ...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].