Jump to content

Module:LibDeflate/doc

From Wikipedia, the free encyclopedia

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.

Usage

[edit]

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)