open-index/open-npm huggingface dataset:
npm package: @leizm/statistics
Description: @leizm/statistics 简单统计模块
Author: Zongmin Lei
Latest version: 1.1.0

# @leizm/statistics
简单统计模块

## 安装

```bash
npm install @leizm/statistics --save
```

## 使用

```typescript
import Statistics from "@leizm/statistics";

// 创建实例
const s = new Statistics();
// 初始化统计字段
s.init("counter", "request_count", "请求次数");
s.init("samples", "response_time", "响应时间");
s.init("data", "memory_usage", "内存使用情况");

// 更新统计信息
s.incr("request_count");
s.add("response_time", 0.1);
s.set("memory_usage", process.memoryUsage());

// 获取当前结果
console.log(s.report());
// 输出结果如下：
// [ { tag: 'request_count', type: 'counter', counter: 1 },
//   { tag: 'response_time',
//     type: 'samples',
//     counter: 1,
//     min: 0.1,
//     max: 0.1,
//     avg: 0.1 },
//   { tag: 'memory_usage',
//     type: 'data',
//     data:
//      { rss: 25255936,
//        heapTotal: 10731520,
//        heapUsed: 7370176,
//        external: 9037 } } ]

// 清空当前结果（用于下一周期统计）
s.flush();
```

## 性能

```

------------------------------------------------------------------------
@leizm/statistics Benchmark
------------------------------------------------------------------------

Platform info:
- Darwin 18.5.0 x64
- Node.JS: 10.15.3
- V8: 6.8.275.32-node.51
  Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz × 8


3 tests success:
┌──────────┬─────────────┬───────┬────────┐
│ test     │ rps         │ ns/op │ spent  │
├──────────┼─────────────┼───────┼────────┤
│ #counter │ 110854572.7 │ 9.0   │ 2.001s │
├──────────┼─────────────┼───────┼────────┤
│ #samples │ 38585000.0  │ 25.9  │ 2.000s │
├──────────┼─────────────┼───────┼────────┤
│ #data    │ 9690000.0   │ 103.2 │ 2.000s │
└──────────┴─────────────┴───────┴────────┘
```

## License

```
MIT License

Copyright (c) 2019 Zongmin Lei <leizongmin@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
npm package: @leizm/utils
Description: utils
Author: Zongmin Lei
Latest version: 1.0.0

# node-@leizm/utils

支持 TypeScript

安装

```bash
$ npm install @leizm/utils --save
```


一些常用的工具函数

+ `bugfree (doNotOutput)`
+ `format (...args)`
+ `sha1 (text)`
+ `md5 (text)`
+ `fileSha1 (filename, callback)`
+ `fileMd5 (filename, callback)`
+ `hash (method, text)`
+ `encryptPassword (password)`
+ `validatePassword (password, encrypted)`
+ `encryptData (data, secret)`
+ `decryptData (str, secret)`
+ `randomString (size, chars)`
+ `randomNumber (size)`
+ `randomLetter (size)`
+ `date (format, timestamp)`
+ `noop (err)`
+ `isString (str)`
+ `isInteger (str)`
+ `isNumber (str)`
+ `cloneObject (obj)`
+ `merge ()`
+ `jsonStringify (data, space)`
+ `argumentsToArray (args)`
+ `getArrayLastItem (arr)`
+ `throttleAsync (fn, maxCount)`
+ `inheritsEventEmitter (fn)`
+ `inherits (fn, superConstructor)`
+ `extend (obj)`
+ `extends (obj)`
+ `array`
  + `last (arr)`
  + `head (arr)`
  + `first (arr)`
  + `rest (arr)`
  + `copy (arr)`
  + `concat ()`
+ `customError (name, info)`
+ `isPromise (p)`
+ `promise`
  + `call (fn)`
  + `all (_args)`
+ `ipToInt (ip)`
+ `toBuffer (data)`
+ `encrypt (algorithm, key, data)`
+ `encryptStream (algorithm, key, inStream)`
+ `decrypt (algorithm, key, data)`
+ `decryptStream (algorithm, key, inStream)`
+ `hashTransform (method, callback)`
+ `createPromiseCallback ()`



# License

```
The MIT License (MIT)

Copyright (c) 2014-2021 老雷

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
npm package: @lejeunerenard/ballchasing-api
Description: A client library for ballchasing.com
Author: Sean Zellmer
Latest version: 1.3.1

# ballchasing.com API Client

A Typescript client library for querying
[ballchasing.com](https://ballchasing.com/) built using
[Effect](https://github.com/Effect-TS/effect).

## Usage

```typescript
import { getClient } from '@lejeunerenard/ballchasing-api/easy'

const client = await getClient('YOUR_AUTH_KEY')

// Single Group
const group = await client.groups.get('2v2-w-scott-2023-12-20-kunazcz10y')
console.log('Single group', group)

// Group List
const groups = await client.groups.list({
  creator: '76561197987055788' // SteamID
})
console.log('Groups', groups)

// Replay list
const meId = 'epic:9152ab3ef0bd44b59de47ca639ca7010'
const replays = await client.replays.list({
  uploader: 'me',
  'player-id': [meId]
})
console.log('Replays', replays)

// Single Replay
const replay = await client.replays.get('bdc27caf-fe82-4708-9f48-4f2561f93313')
console.log('Replay', replay)
```

## TODO

- [ ] Add automatic rate limiting based on Patreon tier
- [ ] Add parallel request support

### Endpoints

|     | Method   | URL                   | Doc Link                                                                        |
| --- | -------- | --------------------- | ------------------------------------------------------------------------------- |
|     | `GET`    | `/`                   | [Ping](https://ballchasing.com/doc/api#ping)                                    |
|     | `POST`   | `/v2/upload`          | [Upload](https://ballchasing.com/doc/api#upload)                                |
| X   | `GET`    | `/replays`            | [List/Filter replays](https://ballchasing.com/doc/api#replays-replays)          |
| X   | `GET`    | `/replays/${id}`      | [Get a specific replay](https://ballchasing.com/doc/api#replays-replay)         |
|     | `DELETE` | `/replays/${id}`      | [Delete a replay](https://ballchasing.com/doc/api#replays-replay-delete)        |
|     | `PATCH`  | `/replays/${id}`      | [Path a replay](https://ballchasing.com/doc/api#replays-replay-patch)           |
|     | `GET`    | `/replays/${id}/file` | [Download replay file](https://ballchasing.com/doc/api#replays-replay-get-1)    |
|     | `POST`   | `/groups`             | [Create a group](https://ballchasing.com/doc/api#replay-groups-groups-post)     |
| X   | `GET`    | `/groups`             | [List/Filter groups](https://ballchasing.com/doc/api#replay-groups-groups-get)  |
| X   | `GET`    | `/groups/${id}`       | [Get a specific group](https://ballchasing.com/doc/api#replay-groups-group-get) |
|     | `DELETE` | `/groups/${id}`       | [Delete a group](https://ballchasing.com/doc/api#replay-groups-group-delete)    |
|     | `PATCH`  | `/groups/${id}`       | [Patch a group](https://ballchasing.com/doc/api#replay-groups-group-patch)      |
|     | `GET`    | `/maps`               | [Maps](https://ballchasing.com/doc/api#misc-maps-get)                           |
npm package: @lejimsft/haul-bundler-cli
Description: Haul is a new command line tools for React Native
Author: Pawel Trysla
Latest version: 0.23.1

# @haul-bundler/cli

[![Version][version]][package]   

[![PRs Welcome][prs-welcome-badge]][prs-welcome]
[![MIT License][license-badge]][license]
[![Chat][chat-badge]][chat]
[![Code of Conduct][coc-badge]][coc]

Command Line Interface for  Haul - Webpack-based React Native bundler.

You can read moe about Haul here: https://github.com/callstack/haul.

## Usage

Installation:

```bash
yarn add @haul-bundler/cli
```

Usage:

```bash
yarn haul -h
```

You can read more about available commands [here](../../docs/CLI%20Commands.md).

<!-- badges (common) -->

[license-badge]: https://img.shields.io/npm/l/@haul-bundler/core.svg?style=flat-square
[license]: https://github.com/callstack/haul/blob/master/LICENSE
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs-welcome]: http://makeapullrequest.com
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/callstack/haul/blob/master/CODE_OF_CONDUCT.md
[chat-badge]: https://img.shields.io/badge/chat-discord-brightgreen.svg?style=flat-square&colorB=7289DA&logo=discord
[chat]: https://discord.gg/zwR2Cdh

[version]: https://img.shields.io/npm/v/@haul-bundler/core.svg?style=flat-square
[package]: https://www.npmjs.com/package/@haul-bundler/core
npm package: @lejimsft/haul-bundler-preset-0.59
Description: Haul preset for React Native 0.59
Author: Pawel Trysla
Latest version: 0.18.2

# @haul-bundler/preset-0.59

[![Version][version]][package]   

[![PRs Welcome][prs-welcome-badge]][prs-welcome]
[![MIT License][license-badge]][license]
[![Chat][chat-badge]][chat]
[![Code of Conduct][coc-badge]][coc]

Project preset with support for __React Native 0.59.x__ for Haul - Webpack-based React Native bundler.

You can read moe about Haul here: https://github.com/callstack/haul.

<!-- badges (common) -->

[license-badge]: https://img.shields.io/npm/l/@haul-bundler/preset-0.59.svg?style=flat-square
[license]: https://opensource.org/licenses/MIT
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs-welcome]: http://makeapullrequest.com
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/callstack/haul/blob/master/CODE_OF_CONDUCT.md
[chat-badge]: https://img.shields.io/badge/chat-discord-brightgreen.svg?style=flat-square&colorB=7289DA&logo=discord
[chat]: https://discord.gg/zwR2Cdh

[version]: https://img.shields.io/npm/v/@haul-bundler/preset-0.59.svg?style=flat-square
[package]: https://www.npmjs.com/package/@haul-bundler/preset-0.59
npm package: @lejimsft/haul-bundler-preset-0.60
Description: Haul preset for React Native 0.60
Author: Pawel Trysla
Latest version: 0.18.4

# @haul-bundler/preset-0.60

[![Version][version]][package]   

[![PRs Welcome][prs-welcome-badge]][prs-welcome]
[![MIT License][license-badge]][license]
[![Chat][chat-badge]][chat]
[![Code of Conduct][coc-badge]][coc]

Project preset with support for __React Native 0.60.x__ for Haul - Webpack-based React Native bundler.

You can read more about Haul here: https://github.com/callstack/haul.

<!-- badges (common) -->

[license-badge]: https://img.shields.io/npm/l/@haul-bundler/preset-0.60.svg?style=flat-square
[license]: https://opensource.org/licenses/MIT
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[prs-welcome]: http://makeapullrequest.com
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/callstack/haul/blob/master/CODE_OF_CONDUCT.md
[chat-badge]: https://img.shields.io/badge/chat-discord-brightgreen.svg?style=flat-square&colorB=7289DA&logo=discord
[chat]: https://discord.gg/zwR2Cdh

[version]: https://img.shields.io/npm/v/@haul-bundler/preset-0.60.svg?style=flat-square
[package]: https://www.npmjs.com/package/@haul-bundler/preset-0.60
npm package: @lejurobot/styles
Description: 乐聚机器人样式库
Author: smy
Latest version: 1.0.3

# leju-styles

乐聚机器人样式库

## 安装

```bash
pnpm add @lejurobot/styles
```

## 使用

在项目的入口文件中引入：

```scss
// 在 main.scss 或 main.ts 中
import '@lejurobot/styles/styles.scss';
```

## 特性

- 全局替换 Element Plus 主题色为项目基色 (#184cfc)
- 自定义 Input、Select、Switch、DatePicker 等组件样式
- 统一的全局圆角和交互效果

## 依赖

- element-plus >= 2.0.0