puz2js

1.0.1 • Public • Published

puz2js

Converts binary Across Lite (.puz) files to javascript objects listing title, author, copyright, notepad, and clues/answers.

Based on Jim Horne's excellent AcrossLiteToText library. All credit goes to Jim for the parsing logic. Check out his XWordInfo site for tons of great crosswording resources!

Basic usage:

const puz2js = require('puz2js')
, fs = require('fs');

const puzzleBytes = fs.readFileSync('/path/to/.puz file');

const parsedPuzzle = puz2js(puzzleBytes);

/* get across clues */
const across = parsedPuzzle.clues.filter((v, i) => {
    return v.direction = 'Across'
});

Readme

Keywords

Package Sidebar

Install

npm i puz2js

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

4

Last publish

Collaborators

  • david-j-park