@vanakat/plugin-api
v0.2.1
Published
Obsidian helper for inter-plugin API communication
Downloads
177
Maintainers
Readme
Obsidian Plugin API
Standartized way of exposing and using Obsidian Plugin APIs
Installation
npm install --save-dev @vanakat/plugin-api
Usage
This module exposes 2 functions:
registerAPI(name, api, plugin)
- registers plugin API in global variable (window
)pluginApi(name)
- returns plugin API based on its name
Examples
Following plugin already use @vanakat/plugin-api
:
- Zotero Bridge as a API provider
- Zotero Link as API consumer
License
MIT