This documents the surface area of Oni's API, which is available to both plugins and configuration.
A good starting point is the Plugin API, which is the object passed into the activate
methods.
The Plugin API is available in a few places:
There is a global Oni
object available in the developer tools:
Open Devtools
Console
tabOni
objectThis is great for quick debugging or exploring the API surface area.
An Oni
API object is passed to the activate
method of your config. An example config.js
using the API object is:
const activate = (oni) => {
// The passed in `oni` object is an instance of the Plugin API
}
module.exports = {
activate,
}
Like the user configuration, for plugins, the entry point is an activate
method with an Oni object passed in.
Generated using TypeDoc