open-index/open-npm huggingface dataset:
npm package: @niwaringo/tinify
Description: Tiny PNG || JPG client
Author: niwaringo@gmail.com
Latest version: 0.1.0

# tinify
Tiny PNG || JPEG client.

## Installation
```bash
$ npm i tinify
```

## Usage
```javascript
var Tinify = require("tinify");
var tinify = Tinify("your api key");
tinify.compress("/path/to/input/image", "/path/to/output/image")
  .on("finish", function() {
    // Action after save file
    assert(tinify.input.size > tinify.output.size);
  });
```

## Method
### compress
compress("/path/to/input/image", "/path/to/output/image")

## Property

### api_key
your api key

### tiny_image_uri
The image was successfully compressed file uri.

### input, output
Response from Tiny PNG.

[see also](https://tinypng.com/developers/reference)