# @miniu/plugin-command

> 命令行插件

Latest version **2.1.0-alpha.0** (published 2021-11-25) · 0 weekly downloads

## Install

```sh
npm install @miniu/plugin-command
pnpm add @miniu/plugin-command
yarn add @miniu/plugin-command
bun add @miniu/plugin-command
```

## 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.0-alpha.0 |
| Published | 2021-11-25 |
| First published | 2020-07-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | minicode-group, zinkey, candy.zheng |

## Links

- npm: https://www.npmjs.com/package/@miniu/plugin-command
- npm.io page: https://npm.io/package/@miniu/plugin-command

## Dependencies (2)

- [@miniu/types](https://npm.io/package/@miniu/types.md) 2.1.0-alpha.0
- [@miniu/utils](https://npm.io/package/@miniu/utils.md) 2.1.0-alpha.0

## Recent versions

- 2.1.0-alpha.0 (latest) — 2021-11-25
- 1.21.4-aliyun.2 (aliyun) — 2021-12-23
- 1.19.3 (legacy) — 2021-11-10
- 1.17.0-alpha.6 (next) — 2021-06-25
- 2.0.0-alpha.1 — 2021-11-12
- 2.0.0-alpha.0 — 2021-11-12
- 1.21.2-aliyun.1 — 2021-11-08
- 1.21.0 — 2021-11-03
- 1.18.0 — 2021-07-22
- 1.17.0 — 2021-06-28
- 1.17.0-alpha.4 — 2021-06-24
- 1.17.0-alpha.3 — 2021-06-23
- 1.17.0-alpha.0 — 2021-06-21
- 1.15.3 — 2021-05-21
- 1.15.0 — 2021-05-19
- … 52 more at https://npm.io/package/@miniu/plugin-command/versions

## README

## @miniu/plugin-command

命令行插件

```ts
export namespace ISlotCommand {
  export interface List extends ISlot {
    name: 'command.list';
    val: [
      string,
      string,
      (yargs: Argv) => void,
      (args: { [argName: string]: unknown; _: string[]; $0: string }) => void
    ];
  }
}
```

示例：

```js
export default ({ add }) => {
  add('command.list', [
    'hellow',
    '😆',
    () => {},
    (argv) => {
      console.log('hello')
    }
  ])
}
```

```
$ miniu test // hello
```

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