Module:LibDeflate/doc
Appearance
| This is a documentation subpage for Module:LibDeflate. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
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)