![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@confuzzle/puz-crossword
Advanced tools
This package is for reading, writing, and parsing .puz
format files. It contains a single class, PuzCrossword
. For standalone reading or writing, see also:
PuzCrossword.from(x)
- equivalent to Buffer.from(x)
, reads .puz
file from x
and returns a new PuzCrossword
.toBytes()
- returns a Uint8Array
containing this crossword in .puz
binary formattoBuffer()
- returns a Buffer
containing this crossword in .puz
binary formatPuzCrossword
objects have the following fields as defined in the .puz file format. They are all strings unless otherwise specified.
title
author
copyright
note
width
- integerheight
- integerclues
- array of stringssolution
state
In addition to these, there are the following fields:
hasState
- boolean indicating whether state is all blank squaresparsedClues
- array of parsed clue objectsThere is no clue numbering explicitly encoded in the .puz
file format, so parsed clues are provided as a convenience. Here is an example of a parsed clue object.
{
number: 42,
text: 'The ultimate question',
solution: 'GFOPIOFJ',
state: '--------',
row: 9,
col: 0,
isAcross: true,
length: 8
}
const PuzCrossword = require('@confuzzle/puz-crossword').PuzCrossword;
const fs = require('fs');
const cw = PuzCrossword.from(fs.readFileSync("test.puz"));
cw.title = "A new title"
const cw2 = PuzCrossword.from(cw.toBytes());
console.log(cw2.title)
The solution in the above clue is scrambled, unscrambling is not yet implemented. Other .puz
features such as rebuses and timers have also not yet been implemented.
FAQs
.puz crossword reader, writer, and parser
The npm package @confuzzle/puz-crossword receives a total of 3 weekly downloads. As such, @confuzzle/puz-crossword popularity was classified as not popular.
We found that @confuzzle/puz-crossword demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.