JSPM

@confuzzle/confuz-crossword

1.2.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24050F
  • License MIT

Conversion to and from `.confuz` format

Package Exports

  • @confuzzle/confuz-crossword

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@confuzzle/confuz-crossword) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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) - convert x from .confuz to a format suitable for URLs,
  • decompressURL(x) - convert from compressed URL format to a .confuz formatted string
  • fromCrossword(crossword, options) - returns a .confuz formatted string representing the object as returned by @confuzzle/confuz-parser. If options.scramble is true, apply base64 scrambling of answers.
  • fromPuz(x) - returns a .confuz formatted string representing x where x is in .puz binary format
  • toPuz(s) - returns a ShareablePuz from a .confuz formatted string s. See @confuzzle/puz-sharing.

In the above methods, x is anything compatible with Buffer.from().