A tool for picture uploading forked from PicGO-Core, for electron usage.
const { PicGo } = require("picgo")
import { PicGo } from "picgo"
const picgo = new PicGo()
// upload a picture from path
picgo.upload(["/xxx/xxx.jpg"])
// upload a picture from clipboard
picgo.upload()
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)
For more details, you can checkout documentation.