# vconsole-plugin-tools

> 泳道设置插件

Latest version **1.0.0** (published 2021-09-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install vconsole-plugin-tools
pnpm add vconsole-plugin-tools
yarn add vconsole-plugin-tools
bun add vconsole-plugin-tools
```

## 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 | 1.0.0 |
| Published | 2021-09-16 |
| First published | 2021-09-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fe-toplion |
| Maintainers | zhaoshaobang |
| Keywords | vconsole |

## Links

- npm: https://www.npmjs.com/package/vconsole-plugin-tools
- Repository: https://github.com/fe-toplion/vconsole-plugin-tools
- Homepage: https://github.com/fe-toplion/vconsole-plugin-tools#readme
- Issues: https://github.com/fe-toplion/vconsole-plugin-tools/issues
- npm.io page: https://npm.io/package/vconsole-plugin-tools

## Recent versions

- 1.0.0 (latest) — 2021-09-16

## README

# vconsole-plugin-tools
**vconsole插件工具集**

基于vconsole开发一些插件工具集，用于解决公司特有场景问题。工具集实际是多个vconsole插件组成的集合，放在一起方便管理和维护。

线上地址预览：<a href="https://fe-toplion.github.io/vconsole-plugin-tools/dist/index.html" target="_blank">https://fe-toplion.github.io/vconsole-plugin-tools/dist/index.html</a>

# 插件工具集列表
**1. VConsoleLanePlugin**

泳道插件主要用于解决泳道标识信息的新建、删除和切换，能够根据域名自动匹配，智能管理

**效果**

<img src="./public/lane.png" width = "375" height = "667" alt="图片名称" align="center" />



# 使用
**方法一： npm包**

1. 安装
```
npm i --save-dev vconsole-plugin-tools
```
2. 初始化

该工具集包含多个插件，支持所有插件都初始化，也支持想要的某些插件
```
import VConsole from 'vconsole';
import VConsoleLanePlugin from 'vconsole-plugin-tools';
const vConsole = new VConsole();
// 初始化所有插件
const tools = new VConsolePluginTools(vConsole);
// 只初始化想要的插件
const lane = new VConsoleLanePlugin(vConsole);
```


**方法二：外链**
```
<script src="https://cdn.bootcss.com/vConsole/3.2.2/vconsole.min.js"></script>
<script src="/dist/vconsole-plugin-tools.min.js"></script>

const vConsole = new VConsole();
// 初始化所有插件
const tools = new VConsolePluginTools(vConsole);
// 只初始化想要的插件
const lane = new VConsoleLanePlugin(vConsole);
```

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