Socket
Socket
Sign inDemoInstall

@confuzzle/confuz-crossword

Package Overview
Dependencies
32
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @confuzzle/confuz-crossword

Conversion to and from `.confuz` format


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@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().

Keywords

FAQs

Last updated on 13 Jun 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc