# bloggify-plugin-loader

> The Bloggify plugin loader.

Latest version **2.1.2** (published 2020-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install bloggify-plugin-loader
pnpm add bloggify-plugin-loader
yarn add bloggify-plugin-loader
bun add bloggify-plugin-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2020-08-09 |
| First published | 2017-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Bloggify |
| Maintainers | ionicabizau |
| Keywords | bloggify, plugin, loader, the |

## Links

- npm: https://www.npmjs.com/package/bloggify-plugin-loader
- Repository: https://github.com/Bloggify/plugin-loader
- Homepage: https://github.com/Bloggify/plugin-loader#readme
- Issues: https://github.com/Bloggify/plugin-loader/issues
- npm.io page: https://npm.io/package/bloggify-plugin-loader

## Dependencies (5)

- [bindy](https://npm.io/package/bindy.md) ^1.0.1
- [noop6](https://npm.io/package/noop6.md) ^1.0.0
- [assured](https://npm.io/package/assured.md) ^1.0.8
- [one-by-one](https://npm.io/package/one-by-one.md) ^3.1.0
- [bloggify-plugin-class](https://npm.io/package/bloggify-plugin-class.md) ^2.1.1

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 2.1.2 (latest) — 2020-08-09
- 2.1.1 — 2019-01-06
- 2.1.0 — 2019-01-06
- 2.0.2 — 2017-09-01
- 2.0.1 — 2017-08-29
- 2.0.0 — 2017-08-29
- 1.0.1 — 2017-06-05
- 1.0.0 — 2017-06-05

## README

<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->


















# bloggify-plugin-loader

 [![Version](https://img.shields.io/npm/v/bloggify-plugin-loader.svg)](https://www.npmjs.com/package/bloggify-plugin-loader) [![Downloads](https://img.shields.io/npm/dt/bloggify-plugin-loader.svg)](https://www.npmjs.com/package/bloggify-plugin-loader)







> The Bloggify plugin loader.






This is the default plugin loader for Bloggify.












## :cloud: Installation

```sh
# Using npm
npm install --save bloggify-plugin-loader

# Using yarn
yarn add bloggify-plugin-loader
```






















## :question: Get Help

There are few ways to get help:



 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
 2. For bug reports and feature requests, open issues. :bug:





## :memo: Documentation


### `bloggifyPluginLoader(bloggify)`
BloggifyPluginLoader
The Bloggify plugin loader.

#### Params

- **BloggifyCore** `bloggify`: The `BloggifyCore` instance.

#### Return
- **BloggifyPluginLoader** The `BloggifyPluginLoader` instance.

### `getPluginPath(pluginName)`
Fetches the plugin's path.

#### Params

- **BloggifyPlugin** `pluginName`: The plugin's name.

#### Return
- **String** The plugin's path.

### `namesToPaths(names)`
Fetches the path list for each plugin.

#### Params

- **Array** `names`: The list of plugin names.

#### Return
- **Array** The path list.

### `listPluginDirs(names, cb)`
Fetches the list of the plugin's instances.

#### Params

- **Array** `names`: The list of plugin names.
- **Function** `cb`: The callback function.

### `getPlugin(plugin)`
Fetches called plugin's content if it's valid. Otherwise, it fetches a new one.

#### Params

- **BloggifyPlugin** `plugin`: The plugin's name.

#### Return
- **BloggifyPlugin|String** The plugin's name or instance.

### `listPlugins(names, cb)`
Fetches the plugins list.

#### Params

- **Array** `names`: The list of plugin names.
- **Function** `cb`: The callback function.

### `initPlugin(plug, cb)`
Initializes the plugin's instance.

#### Params

- **BloggifyPlugin** `plug`: The plugin instance.
- **Function** `cb`: The callback function.

### `loadAll(names, cb)`
Initializes the plugins that need to be loaded.

#### Params

- **Array** `names`: The list of plugin names.
- **Function** `cb`: The callback function.

#### Return
- **Promise** A promise.

### `loadPlugin(plugin, cb)`
Loads the provided plugin.

#### Params

- **BloggifyPlugin** `plugin`: The plugin instance.
- **Function** `cb`: The callback function.

### `get(name, mod)`
If `true`, the raw plugin module will be returned. Otherwise, it will fetch the instance of the plugin.

#### Params

- **String** `name`: The plugin's name.
- **Boolean** `mod`: The plugin's module. Default: `true`

#### Return
- **BloggifyPlugin|String** The plugin's name or instance.














## :yum: How to contribute
Have an idea? Found a bug? See [how to contribute][contributing].
















## :dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:

 - `bloggify`











## :scroll: License

[MIT][license] © [Bloggify][website]






[license]: /LICENSE
[website]: https://bloggify.org
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md

---
_Source: https://npm.io/package/bloggify-plugin-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
