@confuzzle/confuz-crossword
v1.2.3
Published
Conversion to and from `.confuz` format
Downloads
3
Maintainers
Readme
@confuzzle/confuz-crossword
This package is for converting to and from .confuz
format. For a parser to
convert this format into a usable object, see @confuzzle/confuz-parser
.
Methods
compressURL(x)
- convertx
from.confuz
to a format suitable for URLs,decompressURL(x)
- convert from compressed URL format to a.confuz
formatted stringfromCrossword(crossword, options)
- returns a.confuz
formatted string representing the object as returned by@confuzzle/confuz-parser
. Ifoptions.scramble
istrue
, applybase64
scrambling of answers.fromPuz(x)
- returns a.confuz
formatted string representingx
wherex
is in.puz
binary formattoPuz(s)
- returns aShareablePuz
from a.confuz
formatted strings
. See@confuzzle/puz-sharing
.
In the above methods, x
is anything compatible with Buffer.from()
.