The Bloggify plugin loader.
This is the default plugin loader for Bloggify.
# Using npm
npm install --save bloggify-plugin-loader
# Using yarn
yarn add bloggify-plugin-loaderThere are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. π
BloggifyPluginLoader The Bloggify plugin loader.
- BloggifyCore
bloggify: TheBloggifyCoreinstance.
- BloggifyPluginLoader The
BloggifyPluginLoaderinstance.
Fetches the plugin's path.
- BloggifyPlugin
pluginName: The plugin's name.
- String The plugin's path.
Fetches the path list for each plugin.
- Array
names: The list of plugin names.
- Array The path list.
Fetches the list of the plugin's instances.
- Array
names: The list of plugin names. - Function
cb: The callback function.
Fetches called plugin's content if it's valid. Otherwise, it fetches a new one.
- BloggifyPlugin
plugin: The plugin's name.
- BloggifyPlugin|String The plugin's name or instance.
Fetches the plugins list.
- Array
names: The list of plugin names. - Function
cb: The callback function.
Initializes the plugin's instance.
- BloggifyPlugin
plug: The plugin instance. - Function
cb: The callback function.
Initializes the plugins that need to be loaded.
- Array
names: The list of plugin names. - Function
cb: The callback function.
- Promise A promise.
Loads the provided plugin.
- BloggifyPlugin
plugin: The plugin instance. - Function
cb: The callback function.
If true, the raw plugin module will be returned. Otherwise, it will fetch the instance of the plugin.
- String
name: The plugin's name. - Boolean
mod: The plugin's module. Default:true
- BloggifyPlugin|String The plugin's name or instance.
Have an idea? Found a bug? See how to contribute.
If you are using this library in one of your projects, add it in this list. β¨
bloggify