Skip to content

cupools/taida

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taida

Build Status Coverage Status

Compress images by https://tinypng.com

Todo

  • Basic function
  • Basic CLI
  • Apikeys validation and auto switch within presets
  • Backup and restore compressed bitmaps
  • Friendly information reporters
  • Test coverage
  • Display apikey's validation in $ tiny-apikey list
  • Remove promise in apikey's method
  • Temporary apikey
  • Bug in backup path
  • Refactor
  • Webpack loader
  • Automatic register
  • Documentation
  • Publish npm

Getting started

CLI

$ tiny --help

  Usage: tiny [options] [files ...]


  Commands:

    restore   restore the latest compressed bitmaps

  Options:

    -h, --help          output usage information
    -V, --version       output the version number
    -d, --dest <path>   directory path to output images
        --detail        show more detail
        --no-alternate  only use the first apikey even though invalid
        --no-backup     disable backup latest compressed bitmaps for restore
        --no-progress   disable progress bar

  Examples:

    $ tiny images/banner.png
    $ tiny 'src/**/*.{png,jpg}' --dest ./compress
    $ tiny-apikey add apikeyfromtinypng
$ tiny-apikey --help

  Usage: tiny-apikey <command> [key]


  Commands:

    add <key ...>     add apikeys for usage
    delete <key>  remove apikeys by key or item index
    use <key>     suggest specified key to be used first
    list          show apikeys list
    edit          open .apikeys in editor
    supply        open http://tinypng.com to supply api key
    clear         remove all apikeys

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

sample

Test

npm i && npm test

License

Copyright (c) 2016 cupools

Licensed under the MIT license.

Releases

No releases published

Packages

No packages published