Have ideas to improve npm?Join in the discussion! »

munar-plugin-config

2.0.4 • Public • Published

munar-plugin-config

Munar plugin for managing plugin options at runtime.

Installation

$ npm install --save munar-plugin-config

Usage

Add the config plugin at the very top of your plugins list, and list other plugins without options:

{
  "plugins": [
    ["config", { "enable": true }],
    "triggers",
    "chat-log",
    "greetings"
  ]
}

munar-plugin-config will initialise them with the correct configuration.

Configuration

Show the current configuration for a plugin using !config get pluginname. Show a single option using !config get pluginname optionname. For example, !config get emotes url.

Set an option using !config set pluginname optionname value. For example, !config set emotes reupload true.

Add an option to a list configuration using !config add pluginname optionname value, eg !config add reddit-feed subreddits pics.

Remove an option from a list configuration using !config remove pluginname optionname value, eg !config remove reddit-feed subreddits pics.

License

ISC

Keywords

Install

npm i munar-plugin-config

DownloadsWeekly Downloads

0

Version

2.0.4

License

ISC

Unpacked Size

13.5 kB

Total Files

5

Last publish

Collaborators

  • avatar