open-index/open-npm huggingface dataset:
npm package: @mgdn/bvid
Description: bilibili bvid
Author: magicdawn
Latest version: 0.4.0

# @mgdn/bvid

> bilibili bvid

[![Build Status](https://img.shields.io/github/actions/workflow/status/magicdawn/bvid/ci.yml?style=flat-square&branch=main)](https://github.com/magicdawn/bvid/actions/workflows/ci.yml)
[![Coverage Status](https://img.shields.io/codecov/c/github/magicdawn/bvid.svg?style=flat-square)](https://codecov.io/gh/magicdawn/bvid)
[![npm version](https://img.shields.io/npm/v/@mgdn/bvid.svg?style=flat-square)](https://www.npmjs.com/package/@mgdn/bvid)
[![npm downloads](https://img.shields.io/npm/dm/@mgdn/bvid.svg?style=flat-square)](https://www.npmjs.com/package/@mgdn/bvid)
[![npm license](https://img.shields.io/npm/l/@mgdn/bvid.svg?style=flat-square)](http://magicdawn.mit-license.org)

## Credits

https://socialsisteryi.github.io/bilibili-API-collect/docs/misc/bvid_desc.html#typescript

## Goodies

- [x] TypeScript definition
- [x] Unit test, 100% code coverage

## Install

```sh
$ pnpm add @mgdn/bvid
```

## API

```js
import { BvCode, av2bv, bv2av } from '@mgdn/bvid'
```

## Changelog

[CHANGELOG.md](CHANGELOG.md)

## License

the MIT License http://magicdawn.mit-license.org
npm package: @mgdn/retry-cli
Description: Retry with exponential backoff for the command line.
Author: Jon Tirsen
Latest version: 0.6.0

# retry-cli

Command line interface for retrying other commands with exponential backoff.

## Installation

    npm install retry-cli

## Based on

Just a command line interface to https://www.npmjs.com/package/retry

## Example

```
-> % node cli.js -t 1000 -n 3 -- ls asdf
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
```

## Documentation

```
Usage: retry [OPTION] -- [COMMAND]

  -n, --retries=ARG      The maximum amount of times to retry the operation. Default is 10.
      --factor=ARG       The exponential factor to use. Default is 2.
  -t, --min-timeout=ARG  The number of milliseconds before starting the first retry. Default is 1000.
      --max-timeout=ARG  The maximum number of milliseconds between two retries. Default is Infinity.
      --randomize        Randomizes the timeouts by multiplying with a factor between 1 to 2. Default is false.
  -h, --help             display this help.
```
npm package: @mgdn/vbox
Description: vbox: video toolkit box
Author: magicdawn
Latest version: 0.0.1

# vbox

> vbox

<!-- [![Build Status](https://img.shields.io/travis/magicdawn/vbox.svg?style=flat-square)](https://travis-ci.org/magicdawn/vbox)
[![Coverage Status](https://img.shields.io/codecov/c/github/magicdawn/vbox.svg?style=flat-square)](https://codecov.io/gh/magicdawn/vbox) -->

[![npm version](https://img.shields.io/npm/v/@mgdn/vbox.svg?style=flat-square)](https://www.npmjs.com/package/@mgdn/vbox)
[![npm downloads](https://img.shields.io/npm/dm/@mgdn/vbox.svg?style=flat-square)](https://www.npmjs.com/package/@mgdn/vbox)
[![npm license](https://img.shields.io/npm/l/@mgdn/vbox.svg?style=flat-square)](http://magicdawn.mit-license.org)

## Install

```sh
$ npm i @mgdn/vbox --save
```

## API

```js
const vbox = require('@mgdn/vbox')
```

## Changelog

[CHANGELOG.md](CHANGELOG.md)

## License

the MIT License http://magicdawn.mit-license.org
npm package: @mgfx/inspector
Description: A visual tool for inspecting mgFx execution
Latest version: 0.1.1

# `@mgfx/inspector`

A tool for exploring, analysing and debugging mgFx runtime activity across time and space.

![Preview](./docs/preview.gif)

## Features

- Explore mgFx Task executions across time on the horizontal axis.
- Tasks are grouped vertically by their mgFx context.
- For a given task: examine the state, duration, input arguments and output result.
- View activity timing for Contexts (tasks in current Context vs. tasks in descendant Contexts).
- View application activity in real-time ([experimental](#experimental-features)).

## Usage

1. Configure your mgFx application to use the [instrumentation API](../../README.md#instrumentation).

  For example:

  ```typescript
  import { Instrumenter } from 'mgfx';

  new Instrumenter({ scheduler: yourMgFxSchedulerInstance });
  ```

2. Run your mgFx application, passing the instrumentation output to the [mgFx recorder](../recorder/README.md#usage).

   For example:

  ```bash
  $ node your-mgfx-app.js | npx @mgfx/recorder sqlite /path/to/recorder/output.db
  ```

3. While your application is running, start the mgFx Inspector, specifying the path to the same sqlite database that the
   mgFx recorder is using:

  ```bash
  $ npx @mgfx/inspector sqlite /path/to/recorder/output.db
  ```

4. The Inspector user interface may be accessed via http://localhost:8080. The port that the HTTP server starts on may be changed via the `--port` command-line option.

## Experimental Features

### Realtime activity ('follow' mode)

This feature has not yet been surfaced in the UI, but may be enabled by opening the browser window's developer tools and running:

```javascript
window.FOLLOW()
```

in the JavaScript console.

## Roadmap/Planned Features

This list is by no means exhaustive; please feel free to raise an issue suggesting a feature or a Pull Request
implementing one.

- Stress-test: Ensure that the Inspector performs adequately on large data sets.
- Colour-code Tasks in the Timeline based on their state.
- Navigation controls ('go to most recent', 'go to last rejected Task', etc).
- Support for PostgreSQL as an additional database provider.
- Production Usage: Document how to use the Recorder and Inspector for analysis and monitoring of an application running
  in Production.
- 'Real' realtime mode using WebSockets.
- View the 'chain' of execution for a given Task. For example, highlight ancestors, descendants and siblings of a Task
  when hovering over it.
- Better display/interaction of short-lived tasks without the need to zoom to down to milliseconds.
npm package: @mggflow/msvc-api
Description: Send requests to Microservice.
Author: Pavel Eliseev
Latest version: 1.1.6

## MSVC API JS

## About
This package makes wrapping to fast and easy send requests
to [laravel microservice](https://github.com/mggflow/laravel-microservice-base) 
API from Client side code.

## Usage
To install:

``
npm i @mggflow/msvc-api
``

Example:

```
let start = async () => {
    let api = new MsvcApi("url_of_microservice_api", "microservice_name")

    let resp = await api.it.hello({name: "World"}).send()
    if (resp.result) {
        console.log(resp.result)
    }else{
        api.handleResponseErrors(api.decodedResponse)
    }
}

start()
```
npm package: @mggflow/msvc-auth
Description: Manage microservice authentication.
Author: Pavel Eliseev
Latest version: 1.3.1

# Client side of laravel microservice authentication

## About
This package identifies user and inject authentication credentials in requests of [MsvcApi](https://github.com/mggflow/msvc-api.js) package.

## Usage
To install:

``
npm i @mggflow/msvc-auth
``

Example implementation to MsvcApi:

```
// initiate MsvcApi with apiSettins = {....}
api[apiSettins.name] = new MsvcApi(apiSettins.api, apiSettins.name)
api[apiSettins.name].post()

api[apiSettins.name].preparingCallbacks.push(MsvcAuth.prepareApi.bind(MsvcAuth))
```
npm package: @mgjm/autobind
Description: Decorator for lazy binding of methods.
Author: Martin Michaelis
Latest version: 1.0.1

# @mgjm/autobind

Automatically bind class methods to `this` on first access.

Compatible with TypeScript and Babel.

[babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy) is needed for Babel 6.

## Install
```
npm install @mgjm/autobind
```

## Usage
Decorate any class method that should be bound to `this`:
```js
class Foo {
    @autobind
    handleClick() {
        this.doSomething();
    }
}
```

The following is an equivalent (not lazy) class definition:
```js
class Bar {
    constructor() {
        this.handleClick = this.handleClick.bind();
    }

    handleClick() {
        this.doSomething();
    }
}
```

## Why?
`@autobind` works lazy and calls bind only once.

- Compared to `this.handleClick = this.handleClick.bind()` in the constructor it only binds the method if it is needed.

- Compared to calling `.bind()` every time you need to pass your method (e.g. in `render()` of a `React.Component`) it stores the bound method for further use.

- Compared to class properties (`handleClick = () => { this.doSomething() }`) it does not need to create a new function for every instance.

## Credits
Inspired by [autobind-decorator](https://github.com/andreypopp/autobind-decorator) and [core-decorators](https://github.com/jayphelps/core-decorators#autobind).
npm package: @mgjules/swup-progress-plugin
Description: Swup plugin for displaying a loading indicator
Author: Philipp Daun
Latest version: 1.3.0

# Swup Progress Bar Plugin

**by [daun](https://github.com/daun)**

This [swup](https://github.com/swup/swup) plugin will display a progress bar for
all requests taking longer than ~300ms.

More or less a port of Turbolink's implementation.

## Installation

This plugin can be installed with npm

```bash
npm install @mgjules/swup-progress-plugin
```

and included with import

```shell
import SwupProgressPlugin from '@mgjules/swup-progress-plugin';
```

or included from the dist folder

```html
<script src="./dist/SwupProgressPlugin.js"></script>
```

## Usage

To run this plugin, include an instance in the swup options.

```javascript
const swup = new Swup({
  plugins: [new SwupProgressPlugin()]
});
```

## Styling

The progressbar has a class name of `swup-progress-bar` you can use for styling.

```css
.swup-progress-bar {
  height: 4px;
  background-color: blue;
}
```

## Options

```javascript
{
  containerSelector: '#swup-progress-bar-container',
  className: 'swup-progress-bar',
  transition: 300,
  delay: 300,
  initialValue: 0.25,
  hideImmediately: true
}
```

### containerSelector

CSS Selector of container to append progress bar element as child. If empty, the progress bar will be added before the body element.

### className

Class name to use for the container div.

### transition

Length of CSS transition between loading states, in milliseconds.

### delay

How long to wait before showing the progress bar, in milliseconds.

Set to `0` to always display the progress bar, even on fast requests.

### initialValue

To create a slightly more "realistic" appearance, the progress bar will start
out at a random position beteen 0 and the value of this option. Set to `0` to
always start from the left.

### hideImmediately

Whether the progress bar is hidden instantly after a page visit.

Set to `false` to always complete the transition to `width: 100%` before hiding it.
npm package: @mgks/docmd
Description: Legacy wrapper for docmd. Please use @docmd/core.
Author: Ghazi
Latest version: 0.6.8

## @mgks/docmd [MOVED]

⚠️ **THIS PACKAGE HAS BEEN MOVED & RENAMED.** ⚠️

We have moved! Please use **[@docmd/core](https://www.npmjs.com/package/@docmd/core)** for all future updates.

## 🚨 Migration Guide

1. **Uninstall** the old package:
   ```bash
   npm uninstall -g @mgks/docmd
   ```

2. **Install** the new core:
   ```bash
   npm install -g @docmd/core
   ```

## What is this?
This package is a legacy wrapper. It currently forwards all commands to the new `@docmd/core` engine to prevent breaking existing CI/CD pipelines, but **it will not receive new features**.

Please update your scripts to use `@docmd/core`.

## The `docmd` Ecosystem

`docmd` is a modular system. Here are the official packages:

**The Engine**
*   [**@docmd/core**](https://www.npmjs.com/package/@docmd/core) - The CLI runner and build orchestrator.
*   [**@docmd/parser**](https://www.npmjs.com/package/@docmd/parser) - The pure Markdown-to-HTML logic.
*   [**@docmd/live**](https://www.npmjs.com/package/@docmd/live) - The browser-based Live Editor bundle.

**Interface & Design**
*   [**@docmd/ui**](https://www.npmjs.com/package/@docmd/ui) - Base EJS templates and assets.
*   [**@docmd/themes**](https://www.npmjs.com/package/@docmd/themes) - Official themes (Sky, Ruby, Retro).

**Required Plugins**
*   [**@docmd/plugin-installer**](https://www.npmjs.com/package/@docmd/plugin-installer) - Plugin installer for docmd.
*   [**@docmd/plugin-search**](https://www.npmjs.com/package/@docmd/plugin-search) - Offline full-text search.
*   [**@docmd/plugin-pwa**](https://www.npmjs.com/package/@docmd/plugin-pwa) - Progressive Web App support.
*   [**@docmd/plugin-mermaid**](https://www.npmjs.com/package/@docmd/plugin-mermaid) - Diagrams and flowcharts.
*   [**@docmd/plugin-seo**](https://www.npmjs.com/package/@docmd/plugin-seo) - Meta tags and Open Graph data.
*   [**@docmd/plugin-sitemap**](https://www.npmjs.com/package/@docmd/plugin-sitemap) - Automatic sitemap generation.
*   [**@docmd/plugin-llms**](https://www.npmjs.com/package/@docmd/plugin-llms) - AI context generation.
*   [**@docmd/plugin-analytics**](https://www.npmjs.com/package/@docmd/plugin-analytics) - Google Analytics integration.

**Additional Plugins**
*   [**@docmd/plugin-threads**](https://www.npmjs.com/package/@docmd/plugin-threads) - Inline discussion threads.

## License

Distributed under the MIT License. See `LICENSE` for more information.