zhi-siyuan-api
v2.25.0
Published
a siyuan-note api including both kernel and client
Downloads
843
Readme
zhi-siyuan-api
a siyuan-note api including both kernel api and blog adaptor
Usage
import { SiyuanConfig, SiyuanKernelApi } from "zhi-siyuan-api"
// kernelApi
const siyuanConfig = new SiyuanConfig("http://127.0.0.1:6806", "")
const kernelApi = new SiyuanKernelApi(siyuanConfig)
const result = await kernelApi.lsNotebooks()
console.log("result=>", result)
Deps
├── zhi-blog-api
├── zhi-common
├── zhi-lib-base
Dev
pnpm dev -F zhi-siyuan-api
Build
pnpm build -F zhi-siyuan-api
Test
Execute the unit tests via vitest
pnpm test -F zhi-siyuan-api
Publish
pnpm publish -F zhi-siyuan-api --tag latest