logseq-proxy
v0.1.2
Published
Proxy logseq SDK, providing a better development experience.
Downloads
19
Readme
logseq-proxy
Proxy logseq SDK, providing a better development experience.
Usage
- Install dependencies
pnpm add @logseq/libs logseq-proxy
- proxy
import '@logseq/libs'
import proxyLogseq from 'logseq-proxy'
proxyLogseq({
settings: {
// your plugin settings
},
config: {
apiServer: 'http://127.0.0.1:12315', // your api server
apiToken: 'your api token', // your api token
}
})
- use logseq sdk
const getBlock = async () => {
const block = await logseq.Editor.getBlock('blockUUID')
console.log(block)
}