Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

metowolf/qhimg-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qhimg-cli

Author Version Travis License

Command-line Usage

Installation

npm install qhimg-cli -g

Usage

Upload a single image

qhimg dog.png

Upload multiple images (globbing supported)

qhimg "*.jpeg" dog.png
qhimg ~/*.(jpg|png|gif)

Display qhimg-cli version:

qhimg --version

Module Usage

Installation

npm install qhimg-cli

Usage

Requiring the module:

const qhimg = require('qhimg-cli')

Uploading files

qhimg.upload('./test/nodejs.png')
    .then(json => {
        console.log(json)
    })
    .catch(err => {
        console.error(err.message)
    })

success response

{
    "code": "success",
    "data": {
        "ext": "png",
        "mime": "image/png",
        "filename": "nodejs.png",
        "url": "https://ps.ssl.qhmsg.com/t019da962bb7ae33344.png"
    }
}

Author

qhimg-cli © metowolf, Released under the MIT License.

Blog @meto · GitHub @metowolf · Twitter @metowolf · Telegram Channel @metooooo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published