FUSE is cool:

$ lswad -w texwidth.wad
PWAD containing 2 lumps
directory at offset 29340 (size 32 bytes)
    name            size           index
TEXTURE1           25002              36
  PNAMES            4300           25040
$ ./hellowad texwidth.wad ./tmp
$ ls tmp
PNAMES  TEXTURE1