zhi-picgo-siyuan

1.4.0 • Public • Published

sy-picgo

A PicGo library for SiYuan Note widgets

Dev

pnpm install
pnpm dev -F zhi-siyuan-picgo

Build

pnpm build

Test from electron

const initSyPicgo = () => {
    const workspaceDir = "/Users/terwer/Documents/mydocs/zhi-framework/zhi"
    const libsBase = `${workspaceDir}/libs/zhi-siyuan-picgo/dist`
    
    const picgoExtension = require(`${libsBase}/index.cjs`).default
    console.log("picgoExtension=>", picgoExtension)
    const cfgfolder = `/Users/terwer/Downloads`
    const picgo_cfg = cfgfolder + "/picgo.cfg.json"
    
    const appFolder = picgoExtension.getCrossPlatformAppDataFolder()
    console.log("appFolder=>", appFolder)
    
    // 初始化
    const picgo = picgoExtension.initPicgo(picgo_cfg)
    console.log(picgo)
    return picgo
}
initSyPicgo()

Thanks

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i zhi-picgo-siyuan

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

6.79 MB

Total Files

140

Last publish

Collaborators

  • terwer-org