I got sick of 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. The print command is janky as all, but it lets me print my morning crossword from the terminal.
## 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