zhi-picgo-core
v1.7.0
Published
A tool for picture uploading forked from PicGO-Core
Downloads
6
Readme
zhi-picgo-core
A tool for picture uploading forked from PicGO-Core, for electron usage.
Usage
Use in node project
Common JS
const { PicGo } = require("picgo")
ES Module
import { PicGo } from "picgo"
API usage example
const picgo = new PicGo()
// upload a picture from path
picgo.upload(["/xxx/xxx.jpg"])
// upload a picture from clipboard
picgo.upload()
Use in electron
const { PicGo } = require("/Users/terwer/Documents/mydocs/zhi-framework/zhi/libs/zhi-picgo-core/dist/index.cjs.js")
const picgo = new PicGo()
console.log(picgo)
Documentation
For more details, you can checkout documentation.