npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cat-hex

v1.7.1

Published

shows content of binary files - the cat of hexadecimal

Downloads

15

Readme

cat-hex

cat content of binary files - the cat of hexadecimal

Installation

npm install -g cat-hex

This will install a new ch command.

Usage

  Usage: ch [options] <file>

  Options:

    -b, --block-size [blockSize]      size of block, can be 8, 16, 32, 64 (default: 8)
    -H, --no-hexa                     do not display hexadecimal content
    -l, --line-width [lineWidth]      line width in bytes (default: 16)
    -m, --max-offset [maxOffset]      only show n bytes, setting to 0 means show whole file (default: 0)
    -O, --no-offset                   do not show file offset
    -s, --start-offset [startOffset]  start at specified offset (default: 0)
    -v, --version                     output the version number
    -h, --help                        output usage information

Examples

Shows file.zip content, with 32 bytes blocksize:

$ ch -b 32 ./file.zip
00000000   504b0304  14000000  000093b8  2a4a0000  00000000  00000000  PK..........*J..........
00000018   00000900  0000416d  6269616e  63652f50  4b030414  00000000  ......Ambiance/PK.......
00000030   0093b82a  4a000000  00000000  00000000  000a0000  00416d62  ...*J................Amb
00000048   69616e63  65332f50  4b030414  00000008  00ba024e  33e6233a  iance3/PK..........N3.#:
00000060   a3e77c48  00825749  00140000  00416d62  69616e63  65332f46  ..|H..WI.....Ambiance3/F
00000078   6f726573  742e6d70  33245a75  58935f1b  7e17202d  31e24739  orest.mp3$ZuX._.~. -1.G9
00000090   3aa4414a  d0d18c92  464a4905  69105140  193d4677  77232229  :.AJ....FJI.i.Q@.=Fww#")
000000a8   824a4977  49084a77  a9804abe  dff07bfe  d9ae5dd7  ce799e73  .JIwI.Jw..J...{...]..y.s
000000c0   3f799f03  9ec6a118  10c09568  12fcfb20  b6ca0300  72f94895  ?y.........h... ....r.H.
000000d8   f45b00b1  7cae4323  f7280005  306d9400  1c809289  c8114551  .[..|.C#.(..0m........EQ
[...]

Shows huge-file contents, starting at offset 0x100000000 with 64 bytes block size:

$ ch -b 64 -s 0x100000000 ./huge-file
00000001f7000000   88918796899208fb  49f97b156c26552b  4d491c09a10aaaaf  .......ûIù{.l&U+MI..¡.ª¯
00000001f7000018   aab7a6bc08e61dfb  67069eb29cb399b6  08f874fc10151c3e  ª·¦¼.æ.ûg..².³.¶.øtü...>
00000001f7000030   8e0a806d8b8c621f  908291818d8308bb  a61c58a80a13e95f  ...m..b........»¦.X¨..é_
00000001f7000048   f749f7460770646c  646f6fa47e18aeae  b2c3adbc1c5e730a  ÷I÷F.pdldoo¤~.®®²Ã­¼.^s.
00000001f7000060   fb4506848f849083  90c1a9d0b5bcb673  9c18848805fc336e  ûE.......Á©Ðµ¼¶s.....ü3n
[...]