Module:LibDeflate/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Bawolff at 23:16, 29 October 2025 (create). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a utility module to provide zlib compression support (i.e. gzip).

It is used by Module:CineMol to read data from commons:Category:Tabular data of the Chemical Component Dictionary.

This module is taken from https://github.com/safeteeWow/LibDeflate which is licensed under the zlib license. The zlib license is compatible with Wikipedia's license.

See official docs at https://safeteewow.github.io/LibDeflate/source/LibDeflate.lua.html for full details.

Generally this module would only be used by other modules and not directly

  • require( 'Module:LibDeflate' ):CompressDeflate(stringToCompress)
  • require( 'Module:LibDeflate' ):DecompressDeflate(stringToDecompress)
  • require( 'Module:LibDeflate' ):CompressZlib(stringToCompress)
  • require( 'Module:LibDeflate' ):DecompressZlib(stringToDecompress)