Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-plugin-manager
Plugin manager for next.
https://github.com/afeiship/next-plugin-manager
editor manager mgr next plugin
Last synced: 20 days ago
JSON representation
Plugin manager for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-plugin-manager
- Owner: afeiship
- License: mit
- Created: 2021-01-27T00:43:22.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T01:35:01.000Z (over 3 years ago)
- Last Synced: 2024-11-28T04:32:05.111Z (about 1 month ago)
- Topics: editor, manager, mgr, next, plugin
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-plugin-manager
> Plugin manager for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-plugin-manager
```## apis
| api | params | description |
| ---------- | ---------------- | --------------------------------------------- |
| register | inEntity | Add a plugin. |
| unregister | inName | Remove a plugin by name. |
| enabled | - | Get all enabled plugin. |
| disabled | - | Get all disabled plugin. |
| enable | inName | Active a plugin. |
| disable | inName | Deactive a plugin. |
| toggle | inName | Active/Deactive a plugin auto. |
| update | inName, inObject | Update a plugin. |
| updates | inObject | Update multiple plugins. |
| has | inName | Check if a plugin exists. |
| set | inName, inEntity | Set plugin to new value. |
| get | inName | Get a plugin by name. |
| sets | inObject | Multiple set. |
| gets | - | Get all registered plugins(include disabled). |## usage
```js
import NxPluginManager from '@jswork/next-plugin-manager';const manager = NxPluginManager.getInstance();
manager.register();
manager.unregister();
// ...
```## license
Code released under [the MIT license](https://github.com/afeiship/next-plugin-manager/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-plugin-manager
[version-url]: https://npmjs.org/package/@jswork/next-plugin-manager[license-image]: https://img.shields.io/npm/l/@jswork/next-plugin-manager
[license-url]: https://github.com/afeiship/next-plugin-manager/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-plugin-manager
[size-url]: https://github.com/afeiship/next-plugin-manager/blob/master/dist/next-plugin-manager.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-plugin-manager
[download-url]: https://www.npmjs.com/package/@jswork/next-plugin-manager