open-index/open-npm huggingface dataset:
npm package: @swagger-dir/core
Description: A Swagger.io Directory Browser
Author: ViPro
Latest version: 2.0.1

# @swagger-dir/core

> A Swagger.io Directory Browser

Please read the documentation on the official site: <https://github.com/VdustR/swagger-dir/tree/master/packages/core>

[More info](../../README.md)

## Install

```js
npm i @swagger-dir/core
// or use yarn
yarn add @swagger-dir/core
```

## Usage

```js
const app = express();
const SwaggerDir = require('@swagger-dir/core');
const swaggerDir = new SwaggerDir(dir, options);
swaggerDir.start();

app.use(swaggerDir.fn);
app.use('subPath', swaggerDir.fn);

const server = app.listen(port);

const close = async () => {
  console.log('Service is closing...');
  await Promise.all([server.close(), swaggerDir.stop()]);
  console.log('Service is closed!');
};
```

Or you can check how the [Swagger DIR CLI](https://github.com/VdustR/swagger-dir/blob/master/packages/cli/bin/swagger-dir) works for reference.

## Options

```js
const options = {
  mode = 'production',
  logLevel, // debug: 0, info: 1, warn: 2, error: 3, none: 4. Default: info
  formatDate, // Default: date => date.toISOString()
  swaggerUiOptions = {},
  id, // id for log
}
```
npm package: @swaggymacro/koishi-plugin-video-parse
Description: A plugin can dose the short video parse.
Latest version: 0.0.25

# @swaggymacro/koishi-plugin-video-parser

[![npm](https://img.shields.io/npm/v/@swaggymacro/koishi-plugin-video-parser?style=flat-square)](https://www.npmjs.com/package/@swaggymacro/koishi-plugin-video-parser)

A plugin can dose the short video parse.
npm package: @swaglordhabib/vite-plugin-socket-io
Description: Plugin to add socket.io to a Vite server
Author: Bob McAleavey
Latest version: 1.0.3

# Vite Plugin - socket.io

## Description
Plugin to add [socket.io](https://socket.io/) to a Vite server

## Installation
```
npm i -D vite-plugin-socket.io
```

## Basic Usage
```js
// vite.config.js

import vitePluginSocketIO from 'vite-plugin-socket.io'
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [vitePluginSocketIO()]
})
```

## Options
### serverEvents
Function to run when initializing socket.io connection.  Check docs [here](./serverEvents/).
### socketEvents
Function to run containing socket.io listener and emitters.  Check docs [here](./socketEvents/).

## Additional Usage Examples
### Add listeners

```js
// vite.config.js

import vitePluginSocketIO from 'vite-plugin-socket.io'
import { defineConfig } from 'vite';

const socketEvents = (io, socket) => {
  console.log('socket.io - connection');
  socket.on('disconnect', () => {
    console.log(`socket.io - socket.id \`${socket.id}\` disconnected`)
  })
  socket.on('signin', () => {
    console.log('socket.io - signin')
  })
}

export default defineConfig({
  plugins: [vitePluginSocketIO({socketEvents})]
})
```