tinify
Node.js client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.
Last updated 4 years ago by tinify .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tinify 
SYNC missed versions from official npm registry.

Build Status

Tinify API client for Node.js

Node.js client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.

Documentation

Go to the documentation for the Node.js client.

Installation

Install the API client:

npm install tinify

Or add this to your package.json:

{
  "dependencies": {
    "tinify": "*"
  }
}

Usage

const tinify = require("tinify");
tinify.key = "YOUR_API_KEY";

tinify.fromFile("unoptimized.png").toFile("optimized.png");

Running tests

npm install
npm test

Integration tests

npm install
TINIFY_KEY=$YOUR_API_KEY npm run integration

License

This software is licensed under the MIT License. View the license.

Current Tags

  • 1.7.1                                ...           latest (4 years ago)

11 Versions

  • 1.7.1                                ...           4 years ago
  • 1.7.0                                ...           4 years ago
  • 1.6.1                                ...           5 years ago
  • 1.6.0-beta.2                                ...           8 years ago
  • 1.5.0                                ...           9 years ago
  • 1.4.0                                ...           9 years ago
  • 1.3.0                                ...           10 years ago
  • 1.2.0                                ...           10 years ago
  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 0.9.2                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 10
Last Month 3
Dependencies (2)
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |