function deflate$1(input, options) {
  var deflator = new Deflate(options);

  deflator.push(input, true);

  // That will never happens, if you don't cheat with options :)
  if (deflator.err) { throw deflator.msg || msg$1[deflator.err]; }

  return deflator.result;
}
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
- 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.
- `to` (String) - if equal to 'string', then result will be "binary string"
   (each char code [0..255])

##### Example:

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

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