Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 583 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 583 Bytes

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:

License

MIT