1.2.3 • Published 4 years ago
@confuzzle/confuz-crossword v1.2.3
@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)- convertxfrom.confuzto a format suitable for URLs,decompressURL(x)- convert from compressed URL format to a.confuzformatted stringfromCrossword(crossword, options)- returns a.confuzformatted string representing the object as returned by@confuzzle/confuz-parser. Ifoptions.scrambleistrue, applybase64scrambling of answers.fromPuz(x)- returns a.confuzformatted string representingxwherexis in.puzbinary formattoPuz(s)- returns aShareablePuzfrom a.confuzformatted strings. See@confuzzle/puz-sharing.
In the above methods, x is anything compatible with Buffer.from().