* deflate(data[, options]) -> Uint8Array|Array|String * - data (Uint8Array|Array|String): input data to compress. * - options (Object): zlib deflate options. * * Compress `data` with deflate algorithm and `options`. * * Supported options are: * * - level * - windowBits * - memLevel * - st
(input, options)
| 4925 | * ``` |
| 4926 | **/ |
| 4927 | function deflate(input, options) { |
| 4928 | var deflator = new Deflate(options); |
| 4929 | |
| 4930 | deflator.push(input, true); |
| 4931 | |
| 4932 | // That will never happens, if you don't cheat with options :) |
| 4933 | if (deflator.err) { throw deflator.msg || msg[deflator.err]; } |
| 4934 | |
| 4935 | return deflator.result; |
| 4936 | } |
| 4937 | |
| 4938 | |
| 4939 | /** |
no test coverage detected