* inflate(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to decompress. * - options (Object): zlib inflate options. * * Decompress `data` with inflate/ungzip and `options`. Autodetect * format via wrapper header by default. That's why we don't provide
(input, options)
| 17778 | * ``` |
| 17779 | **/ |
| 17780 | function inflate(input, options) { |
| 17781 | var inflator = new Inflate(options); |
| 17782 | |
| 17783 | inflator.push(input, true); |
| 17784 | |
| 17785 | // That will never happens, if you don't cheat with options :) |
| 17786 | if (inflator.err) { throw inflator.msg; } |
| 17787 | |
| 17788 | return inflator.result; |
| 17789 | } |
| 17790 | |
| 17791 | |
| 17792 | /** |
no test coverage detected