Skip to content
forked from PicGo/PicGo-Core

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

License

Notifications You must be signed in to change notification settings

typora/PicGo-Core

This branch is 157 commits behind PicGo/PicGo-Core:dev.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ed2250a · Dec 27, 2019
Oct 20, 2018
Dec 26, 2019
Dec 27, 2019
Dec 20, 2018
Sep 17, 2018
Sep 17, 2018
Dec 27, 2019
Sep 17, 2018
Apr 9, 2019
Dec 27, 2019
Dec 26, 2019
Oct 20, 2018
Dec 26, 2019

Repository files navigation

PicGo - Core

standard GitHub Travis (.org) npm PicGo Convention

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
    use [module]                         use modules of picgo
    init [options] <template> [project]  create picgo plugin\'s development templates

Upload a picture from path

picgo upload /xxx/xx/xx.jpg

Upload a picture from clipboard

picture from clipboard will be converted to png

picgo upload

Thanks to vs-picgo && Spades-S for providing the method to upload picture from clipboard.

Use in node project

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

// upload a picture from path
picgo.upload(['/xxx/xxx.jpg'])

// upload a picture from clipboard
picgo.upload()

Documentation

For more details, you can checkout documentation.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.7%
  • AppleScript 2.5%
  • PowerShell 2.3%
  • Other 1.5%