raw (Boolean) - say that we work with raw stream, if you don't wish to specify
negative windowBits implicitly.
to (String) - if equal to 'string', then result will be converted
from utf8 to utf16 (javascript) string. When string output requested,
chunk length can differ from chunkSize, depending on content.
inflate(data[, options]) -> Uint8Array|String
Decompress
data
with inflate/ungzip andoptions
. Autodetect format via wrapper header by default. That's why we don't provide separateungzip
method.Supported options are:
http://zlib.net/manual.html#Advanced for more information.
Sugar (options):
raw
(Boolean) - say that we work with raw stream, if you don't wish to specify negative windowBits implicitly.to
(String) - if equal to 'string', then result will be converted from utf8 to utf16 (javascript) string. When string output requested, chunk length can differ fromchunkSize
, depending on content.Example: