A tool for picture uploading


Keywords
picture, upload, util, picgo, picture-upload, upload-pictures
License
MIT
Install
npm install picgo@1.5.6

Documentation

PicGo - Core

standard GitHub Travis (.org) npm

A tool for picture uploading. Both CLI & api supports.

Installation

Global install

npm install picgo -g

# or

yarn global add picgo

Local install

npm install picgo -D

# or

yarn add picgo -D

Usage

Use in CLI

PicGo uses SM.MS as the default upload pic-bed.

Show help:

$ picgo -h

  Usage: picgo [options] [command]

  Options:

    -v, --version                 output the version number
    -d, --debug                   debug mode
    -s, --silent                  silent mode
    -c, --config <path>           set config path
    -h, --help                    output usage information

  Commands:

    install|add <plugins...>      install picgo plugin
    uninstall|rm <plugins...>     uninstall picgo plugin
    update <plugins...>           update picgo plugin
    set|config <module> [name]    configure config of picgo modules
    upload|u <input...>           upload, go go go
    choose|ch [options] [module]  choose modules of picgo

Upload a picture from path

picgo upload /xxx/xx/xx.jpg

Use in node project

const PicGo = require('picgo')
const picgo = new PicGo()

picgo.upload(['/xxx/xxx.jpg'])

Documentation

For more details, you can checkout documentation.