Skip to content

david-j-park/puz2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
});

Guidelines for Usage

Please respect the copyrights of puzzle constructors when using this tool. Anything other than personal use of their work requires permission.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages