open-index/open-npm huggingface dataset:
npm package: @skyfox2000/vite-plugin-auto-import-dts
Description: A Vite plugin to auto-import and manage TypeScript declarations.
Author: skyfox2000@github.com
Latest version: 1.0.9

# vite-plugin-auto-import-dts

A Vite plugin to auto-import and manage TypeScript declarations.

## Installation

```bash
npm install @skyfox2000/vite-plugin-auto-import-dts --save-dev
```

## Usage

```javascript
// vite.config.ts
import autoImportDTS from "@skyfox2000/vite-plugin-auto-import-dts";

export default {
   plugins: [
      autoImportDTS({
         path: "./src/views",
         target: "./src/types/global.d.ts"
      })
   ]
};
```

## Options

This plugin accepts the following configuration options:

| Option   | Type     | Default                     | Description                                                                                                                                                                                      |
| -------- | -------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `path`   | `string` | `'./src/views'`             | The directory or directories to scan for `.d.ts` files. You can specify a single directory or an array of paths.                                                                                 |
| `target` | `string` | `'./src/types/global.d.ts'` | The target file where the generated global type declarations will be stored. If the target path does not exist, an error will be thrown. Make sure to manually create the necessary directories. |
npm package: @skyfox2000/webbase
Description: 后台前端通用功能与数据类型定义
Author: skyfox2000@github.com
Latest version: 1.1.18

# 前端子应用通用功能与数据类型定义

## 项目简介

## 安装方式
```shell
npm install -S @skyfox2000/webbase
```

## 功能清单

## 功能使用说明

## 注意事项
npm package: @skyfury/egg-bull-board
Description: EggAdapter for bull-board
Author: skyfury
Latest version: 4.6.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# egg bull board

<p align="center">
  <a href="https://github.com/vcapretz/bull-board/blob/master/LICENSE">
    <img alt="licence" src="https://img.shields.io/github/license/littleboyfury/egg-bull-board">
  </a>
  <img alt="open issues" src="https://img.shields.io/github/issues/littleboyfury/egg-bull-board"/>
  <a href="https://www.typescriptlang.org/">
    <img src="https://img.shields.io/badge/Typescript-4.3.5-green.svg" alt="typescript">
  </a>
  <a href="https://nodejs.org/en/">
    <img src="https://img.shields.io/badge/node->_v12-green.svg" alt="node">
  </a>
  <a href="https://www.ecma-international.org/publications-and-standards/standards/ecma-262/">
    <img src="https://img.shields.io/badge/Ecmascript-2019+-green.svg" alt="Ecmascript">
  </a>
<p>

## Install

```bash
npm install @skyfury/egg-bull-board -S
```

## bull-board

[bull-board](https://github.com/felixmosh/bull-board)

## Use

[with-egg](exmaple/with-egg/app/router.js)

```javascript
'use strict';

const Bull = require('bull')
const { EggAdapter } = require('@skyfury/egg-bull-board')
const { createBullBoard } = require('@bull-board/api');
const { BullAdapter } = require('@bull-board/api/bullAdapter');

const redisOptions = {
  port: 6379,
  host: 'localhost',
  password: '',
  tls: false,
};

const createQueue = (name) => new Bull(name, { connection: redisOptions });

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  const bullQueue = createQueue('bull');
  
  const serverAdapter = new EggAdapter();
  createBullBoard({
    queues: [new BullAdapter(bullQueue)],
    serverAdapter,
  });
  serverAdapter.setBasePath('/ui');
  app.use(serverAdapter.registerPlugin());
  
  router.get('/add', async (ctx) => {
    const opts = ctx.query.opts || {};

    if (opts.delay) {
      opts.delay = +opts.delay * 1000; // delay must be a number
    }

    await bullQueue.add('Add', { title: ctx.query.title }, opts);

    ctx.body = {
      ok: true,
    };
  });

  console.log(`For the UI of instance1, open http://localhost:${app.config.cluster.listen.port}/ui`);
  console.log('Make sure Redis is running on port 6379 by default');
  console.log('To populate the queue, run:');
  console.log(`  curl http://localhost:${app.config.cluster.listen.port}/add?title=Example`);
  console.log('To populate the queue with custom options (opts), run:');
  console.log(`  curl http://localhost:${app.config.cluster.listen.port}/add?title=Test&opts[delay]=9`);
};
```
npm package: @skyfury/egg-ts-cli
Description: egg typescript cli
Author: skyfury
Latest version: 1.2.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<div align="center">
<h1>Egg typescript cli</h1>

[![node](https://img.shields.io/badge/node->_v14-green.svg)](https://nodejs.org/en/)
[![Typescript](https://img.shields.io/badge/Typescript-4.0.0-green.svg)](https://www.typescriptlang.org/)
[![Ecmascript](https://img.shields.io/badge/Ecmascript-2020+-green.svg)](https://www.ecma-international.org/publications-and-standards/standards/ecma-262/)
</div>

## Install
```bash
npm i @skyfury/egg-ts-cli -g
```

## Use

```bash

Usage: index [options] <directories>

Options:
  -V, --version      output the version number
  -D, --dest [type]  destination dir (default: ".")
  -h, --help         display help for command

# Generate to current directory
egg-ts

# install package
npm install

## run package
npm run dev

# Generate to projectDir directory
egg-ts -D projectDir

cd projectDir

# install package
npm install

## run package
npm run dev
```
npm package: @skyfury/reformat-markdown-cn
Description: Reformat and align markdown tables with Chinese
Author: skyfury
Latest version: 2.0.4

# reformat-markdown-cn

[![Version](https://img.shields.io/badge/npm-6+-green.svg)](https://www.npmjs.org/package/reformat-markdown-table)
[![node](https://img.shields.io/badge/node->_v14-green.svg)](https://nodejs.org/en/)
[![Build Status](https://img.shields.io/travis/dbrockman/reformat-markdown-table/master.svg?style=flat)](https://travis-ci.org/dbrockman/reformat-markdown-table)
[![Coverage Status](http://img.shields.io/coveralls/dbrockman/reformat-markdown-table.svg?style=flat)](https://coveralls.io/r/dbrockman/reformat-markdown-table?branch=master)

## 例子

MarkDown 表格代码如下：

```
## 标题

| 姓名 | 电话 | 邮箱 |
| --- | :---: | ---: |
| 王顶 | 13582027613 | 408542507@qq.com |
| 郭玉朝 | 13812347652 | baldy@163.com |
|  | abc | def
```

通过 reformat-markdown-cn 工具的处理之后：

```
## 标题

| 姓名   |     电话     |              邮箱 |
|-------|:-----------:|-----------------:|
| 王顶   | 13582027613 | 408542507@qq.com |
| 郭玉朝 | 13812347652 |    baldy@163.com |
|       |     abc     |              def |
```

## 终端使用

编辑一个 MarkDown 文件， MarkDown 表格内容，运行下面的命令：

```bash

#格式化Markdown表格

npm i @skyfury/reformat-markdown-cn -g

reformat-markdown-cn -h

Usage: reformat-markdown-cn [options] <files|directories|globs>

Options:
  -V, --version          output the version number
  -R, --reformat [type]  check another rules and reformat markdown table, (default: {"0": 0, "1": 2, "2": 3, "3": 5})
  -C, --cat              only cat format markdown content (default: false)
  -h, --help             display help for command

#  1:2对应，合适等比字体
#  '{"0": 0, "1": 2}'
#  [默认] IDEA大致对应
#  '{"0": 0, "1": 2, "2": 3, "3": 5}'
#  自定义对应，按照需求自定义向后添加
#  '{"0": 0, "1": 2, "2": 3, "3": 5, "4": 7}'


# 格式化一个文件
reformat-markdown-cn ./markdown/example.md 
# 格式化多个文件
reformat-markdown-cn ./markdown/**/*.md
# 自定义字符对应
reformat-markdown-cn ./markdown/example.md -R '{"0": 0, "1": 2}'
reformat-markdown-cn ./markdown/**/*.md -R '{"0": 0, "1": 2}'
# 终端输出内容，不会覆盖源文件
reformat-markdown-cn ./markdown/example.md -R '{"0": 0, "1": 2}' -C
reformat-markdown-cn ./markdown/**/*.md -R '{"0": 0, "1": 2}' -C
```

## 代码使用

## javascript 使用

```javascript
const {reformatReadmeDoc} = require('@skyfury/reformat-markdown-cn')

const str = `
|测试|你好|world|世界|
|-----|-----|-----|-------|
|1|1|2|2|
|22|33|44|55|
`
const result = reformat(content)

const str1 = reformatReadmeDoc(str, JSON.stringify(format))

console.log(str1)

// | 测试 | 你好 | world | 世界 |
// |------|------|-------|------|
// | 1    | 1    | 2     | 2    |
// | 22   | 33   | 44    | 55   |
```

## typescript 使用

```TypeScript
import {reformatReadmeDoc}  from '@skyfury/reformat-markdown-cn'

const str = `
|测试|你好|world|世界|
|-----|-----|-----|-------|
|1|1|2|2|
|22|33|44|55|
`

console.log(str)
const format = {
  0: 0,
  1: 2,
  // 2: 3,
  // 3: 5,
}

const str1 = reformatReadmeDoc(str, JSON.stringify(format))

console.log(str1)

// | 测试 | 你好 | world | 世界 |
// |------|------|-------|------|
// | 1    | 1    | 2     | 2    |
// | 22   | 33   | 44    | 55   |
```