open-index/open-npm huggingface dataset:
npm package: @microbt/aliyun-cdn
Description: cdn related plugin
Latest version: 0.0.1

# umi-plugin-deploy

[![NPM version](https://img.shields.io/npm/v/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy) [![NPM downloads](http://img.shields.io/npm/dm/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/aliyun-deploy
Description: aliyun frontend deploy
Latest version: 0.1.3

# @microbt/aliyun-deploy

[![NPM version](https://img.shields.io/npm/v/@microbt/aliyun-deploy.svg?style=flat)](https://npmjs.org/package/@microbt/aliyun-deploy)
[![NPM downloads](http://img.shields.io/npm/dm/@microbt/aliyun-deploy.svg?style=flat)](https://npmjs.org/package/@microbt/aliyun-deploy)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/js-bridge
Description: a brige for microbt client
Latest version: 0.0.0

# JSBrige 使用说明书

将构建产物 `dist/umd/js-bridge.min.js` 内置到客户端内，由 Webview 启动时加载并运行 `JSBridge`

## 基础约定

```javascript
// 调用示例
SuperACME.call('module', parameter, fulfilled, rejected);
```

- 基础约定必须保持跨平台一致
- `SuperACME`为客户端注入 Webview 的全局对象，访问`SuperACME.version`可获得当前 bridge 版本
- 客户端在注入全局对象成功后，须通知运行时。Bridge 相关的所有调用发生在该通知之后。（通知方案待讨论 TODO）
- `module`为客户端实现的具体方法名称
- `parameter`为运行时传入的参数对象。参数的具体规范，应与具体`module`保持一一对应
- 所有的 bridge 调用均为异步调用，`fulfilled`为成功调用的回调函数,`rejected`为失败调用的回调函数，没有其他回调情况
- `fulfilled`的定义: `(result) => void`，其中`result`为模块调用返回的数据
- `rejected`的定义: `(error: {code: number; message: string; cause?: unknown}) => void`，其中`error`为模块调用返回的错误对象。`error.code`为错误码，`error.message`为错误描述，`error.detail`为错误详情(可选)

> 注入脚本涉及到 IO 异步操作，客户端注入成功后，WebView 运行时才能访问`SuperACME`全局对象。

## 错误码约定

- 0: 调用成功
- 1000：本地系统异常（1001-1999）约定具体的本地系统错误码（尽可能的保持跨平台的一致性）TODO
- 2000：本地业务异常（2001-2999）约定具体的业务错误码（保持跨平台的一致性）TODO
- 3000：远程调用异常（3001-3999）约定具体的远程调用错误码（保持跨平台的一致性）TODO
- 9999：未知的错误

## 页面的生命周期

```javascript
SuperACME.call('onShow', {}, fulfilled);
```

- 页面生命周期至少包含：`onShow`（页面转换到前台时的回调）、`onHide`(页面转换到后台时的回调)
- 可选包含：`onCreate`（页面创建时的回调）、`onDestroy`（页面销毁时的回调）
- `fulfilled`的返回值待讨论 TODO
- 该调用没有失败

## 判断模块/接口是否存在

```javascript
SuperACME.call('canIUse', 'module', fulfilled);
```

- `module`为模块名
- `fulfilled`的返回值为`true` or `false`
- 该方法不会调用失败

## Model 定义

明确定义各个模块的入参与出参的数据结构。TODO

- 客户端版本
- 远程请求
- 打开新的窗口
- 支付
- 用户信息
npm package: @microbt/pocket-button
Description: React component libraries with Vite, Tailwind, and Storybook.
Author: shaomingbo
Latest version: 0.0.0

# Vite React Component Library Starter

This is a starter template for creating React component libraries using Vite. It includes a robust set of features to help you develop, test, and build your library efficiently.

## Features

- React: A JavaScript library for web and native user interfaces.
- TypeScript: A strongly typed superset of JavaScript.
- Tailwind: A utility-first CSS framework.
- Storybook: A frontend workshop for building UI components and pages in isolation.
- Vite: A next generation frontend tooling that runs and builds your library incredibly fast.
- Vitest: A next generation testing framework.
- ESLint: A tool that finds and fixes problems in your code.
- Prettier: A code formatter.
- Husky: A pre-commit hook.
- Github Action: A tool that deploys your Storybook to GitHub page automatically.

## Get Started

1. Clone this repository
2. Install dependencies using `npm i` (or `pnpm i` if you like)

## Scripts

- `dev`: Starts the local Storybook server, use this to develop and preview your components.
- `test`: Runs all your tests with vitest.
- `test:watch`: Runs tests in watch mode.
- `test:ui`: Runs tests with a UI.
- `test:coverage`: Runs tests and generates a coverage report.
- `build`: Builds your Storybook as a static web application.
- `build:lib`: Builds your component library with Vite.
- `lint`: Runs ESLint.
- `format`: Formats your code with Prettier.

## License

MIT
npm package: @microbt/project-meta
Description: project fingerprint
Latest version: 0.0.7

# umi-plugin-deploy

[![NPM version](https://img.shields.io/npm/v/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy) [![NPM downloads](http://img.shields.io/npm/dm/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/qiankun-app
Description: qiankun app config for umi
Latest version: 0.0.4

# umi-plugin-deploy

[![NPM version](https://img.shields.io/npm/v/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy) [![NPM downloads](http://img.shields.io/npm/dm/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/request-configs
Description: share request configs across projects
Latest version: 0.0.8

# @microbt/request-configs

[![NPM version](https://img.shields.io/npm/v/@microbt/request-configs.svg?style=flat)](https://npmjs.org/package/@microbt/request-configs)
[![NPM downloads](http://img.shields.io/npm/dm/@microbt/request-configs.svg?style=flat)](https://npmjs.org/package/@microbt/request-configs)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/shared
Description: platform common share library
Latest version: 0.1.0

# @microbt/shared

[![NPM version](https://img.shields.io/npm/v/@microbt/shared.svg?style=flat)](https://npmjs.org/package/@microbt/shared) [![NPM downloads](http://img.shields.io/npm/dm/@microbt/shared.svg?style=flat)](https://npmjs.org/package/@microbt/shared)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microbt/utils
Description: utils
Latest version: 0.0.1

# umi-plugin-deploy

[![NPM version](https://img.shields.io/npm/v/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy) [![NPM downloads](http://img.shields.io/npm/dm/umi-plugin-deploy.svg?style=flat)](https://npmjs.org/package/umi-plugin-deploy)

## Install

```bash
$ pnpm install
```

```bash
$ npm run dev
$ npm run build
```

## Options

TODO

## LICENSE

MIT
npm package: @microcode/canary
Description: Native watchdog
Author: jesper@microcode.se
Latest version: 1.3.0

canary
======

Native watchdog to monitor event loop deadlocks and terminate execution.

Usage
-----

```
const watchdog = require('@microcode/canary');

watchdog.start();
while (condition) {
    await doThing();
}
watchdog.stop();
```

How does it work
----------------

This module launches a native thread that expects the JavaScript event loop to send a ping at regular intervals. If the event loop gets too busy to do this for a substantial period of time, the watchdog will consider the application deadlocked.

Currently the watchdog can then kill the application, or just store that a deadlock occured and return this when stopping the watchdog.

API
---

## start(options)

Starts the watchdog.

- `timeout` - Timeout threshold for the watchdog in milliseconds (default: `10000`)
- `ping` - Event loop ping interval in milliseconds (default: `1000`)
- `terminate` - If set to true, the application will exit when triggered (default: `true`)
- `print` - If set to true, the application will print a message when triggered (default: `true`)

Throws an exception if the watchdog fails to start.

## stop()

Stops the watchdog.

Returns a boolean indicating if the watchdog was triggered or not.
npm package: @microcode/expiring
Description: Data containers with expiry
Author: Jesper Svennevid
Latest version: 0.1.0

Data containers with expiry
===========================

This provides a set of data containers where the stored data is removed after a set time.

This current containers that are implemented:

`ExpiringSet` (a version of `Set`)

Installation
------------

```
npm install @microcode/expiring
OR
yarn add @microcode/expiring
```

License
-------

This is licensed under the MIT license. Please read `LICENSE` for details.