# rubest-plugins

> ### 插件的注入分为两种方式，分别在运行时，和编译期，通过 rubest.config.js 进行判断：

Latest version **0.1.6** (published 2022-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install rubest-plugins
pnpm add rubest-plugins
yarn add rubest-plugins
bun add rubest-plugins
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2022-02-19 |
| First published | 2022-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | J0kerrr |
| Maintainers | j0kerrr |

## Links

- npm: https://www.npmjs.com/package/rubest-plugins
- npm.io page: https://npm.io/package/rubest-plugins

## Recent versions

- 0.1.6 (latest) — 2022-02-19
- 0.1.5 — 2022-02-18
- 0.1.4 — 2022-02-18
- 0.1.3 — 2022-02-18
- 0.1.2 — 2022-02-01
- 0.1.1 — 2022-02-01
- 0.1.0 — 2022-02-01

## README

## 插件集注入

### 插件的注入分为两种方式，分别在运行时，和编译期，通过 rubest.config.js 进行判断：

```js
// 简单方案，并且该文件不存在时，默认加载所有的插件。
module.exports = {
    plugins:[
        'rubest-plugin-table'
    ]
}

// 细化方案
module.exports = {
    plugins: [
        {
            name:'rubest-plugin-table',
            mode: "dynamic", // 默认为 static
            interface: 'http://xxx/xxx/xxx/xxx.js' // 默认不开启，在 mode 为 dynamic 时进行开启，开启后，.json 文件失效，所有内容默认从接口中获取
            schema: {
                // 或者可以在这里进行动态加载，在schema 和 interface 同时存在时，以 schema 优先。
            }
        }
    ],

}

```

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