Macs don't ship the hd utility by default, so using the hex view functionality in the web UI doesn't work. This PR adds an OS check and uses xxd instead when macOS is detected.
The color formatting is a little screwed up since xxd and hd have slightly different output, but it's better than nothing.
Macs don't ship the hd utility by default, so using the hex view functionality in the web UI doesn't work. This PR adds an OS check and uses xxd instead when macOS is detected.
The color formatting is a little screwed up since xxd and hd have slightly different output, but it's better than nothing.