I got sick of scrounging the internet for badly formatted printable crosswords. So in a rage I set to writing my own parser for
.puz files.
I then used puppeteer to make a nice printable pdf version. It's a bit janky but it lets me print my morning crossword from the terminal.
It was also quite fun reading puz file specs and figuring out how to parse that in node.
## Install
## puz pdf
puz pdf crossword.puz -o myCrossword.pdf
Converts a puz file to a pdf
-o, --output
Choose the output file path, defaults to the same as the input
-d, --debugTemplate
Output the html file that is given to puppeteer
## puz print
Skip opening the pdf and go straight to print! (Brings up a dialogue for choosing the printer)
Note: currently using a pretty limited package for printing that probably only works on unix computers and requires a pdf to be created before printing.
## puz solution
Logs the crossword's solution to the console.
## puz stats
Log out the puz file's metadata
--json
Log as plain json