![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@webiny/plugins
Advanced tools
A simple registry that stores all plugins in a shared object.
The only requirement for a plugin is to have a name
and a type
properties.
The rest is entirely up to you.
There is nothing spectacular going on under the hood, just a simple object for storing references and a few utility functions.
For more information, please visit the official docs.
npm install --save @webiny/plugins
Or if you prefer yarn:
yarn add @webiny/plugins
import { plugins } from "@webiny/plugins";
// Add a plugin
plugins.register({
name: "my-plugin",
type: "say-hi",
salute: () => "Hi!"
});
plugins.register({
name: "my-second-plugin",
type: "say-hi",
salute: () => "Yo!"
});
// anywhere in your app
import { plugins } from "@webiny/plugins";
const pluginList = plugins.byType("say-hi");
pluginList.forEach(plugin => {
// Call "salute" function
plugin.salute();
});
// anywhere in your app
import { plugins } from "@webiny/plugins";
const plugin = plugins.byName("my-plugin");
// Call "salute" function
plugin.salute();
// anywhere in your app
import { plugins } from "@webiny/plugins";
plugins.unregister("my-plugin");
5.18.0-beta.4 (2021-11-23)
FAQs
A simple registry that stores all plugins in a shared object.
The npm package @webiny/plugins receives a total of 703 weekly downloads. As such, @webiny/plugins popularity was classified as not popular.
We found that @webiny/plugins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.