function deflate$1(input, options) {
    var deflator = new Deflate$1(options);
    deflator.push(input, true); // That will never happens, if you don't cheat with options :)

    if (deflator.err) {
      throw deflator.msg || messages[deflator.err];
    }

    return deflator.result;
  }
deflate(data[, options]) -> Uint8Array
- data (Uint8Array|String): input data to compress.
- options (Object): zlib deflate options.

Compress `data` with deflate algorithm and `options`.

Supported options are:

- level
- windowBits
- memLevel
- strategy
- dictionary

[http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
for more information on these.

Sugar (options):

- `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
  negative windowBits implicitly.

##### Example:

```javascript
const pako = require('pako')
const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);

console.log(pako.deflate(data));
```