xxd package icon
icedcoffee/xxd
Public
wasmer run icedcoffee/xxd

xxd — hex dump and reverse, for WASIX

xxd from Vim 9.2.0858 (the version Debian trixie ships in vim-common), built as a standalone module.

wasmer run icedcoffee/xxd -- file.bin
wasmer run icedcoffee/xxd -- -p file.bin          # plain hex, no offsets
wasmer run icedcoffee/xxd -- -r dump.hex > out.bin
wasmer run icedcoffee/xxd -- -i file.bin          # C include

What is in the package

xxd with its usual options: -l length, -c columns, -g group size, -s seek, -p plain, -i C include, -b binary, -u upper case, -e little endian, -r reverse, -o offset adjust, -a autoskip.

Verified

$ xxd h.txt
00000000: 6865 6c6c 6f0a                           hello.
$ xxd -p h.txt
68656c6c6f0a
$ xxd -l 4 h.txt
00000000: 6865 6c6c                                hell
$ xxd h.txt | xxd -r > h2.txt      # byte-identical round trip

Building

One C file, src/xxd.c from the Vim tree, compiled directly with the WASIX toolchain — no configure, no dependencies. 81 KiB, no asyncify (xxd never forks or longjmps).

License: MIT, as upstream.

xxd for WASIX - hex dump and reverse, from Vim 9.2.0858


Github