open-index/open-npm huggingface dataset:
npm package: @hexxagon/log-finder-ruleset
Description: Terra standard ruleset for well known log patterns
Author: Hexxagon
Latest version: 3.0.0

# @hexxagon/log-finder-ruleset

Terra standard ruleset for well known log patterns

## Example codes

```typescript
import {
  createActionRuleSet,
  createAmountRuleSet
  createLogMatcherForActions,
  createLogMatcherForAmounts,
  getTxCanonicalMsgs,
  getTxAmounts
} from "@hexxagon/log-finder-ruleset"

// https://lcd.terra-classic.hexxagon.io/txs/:txhash
const tx = {
  "height": ...,
  "txhash": ...,
  "raw_log": ...,
  "logs": ...,
  "gas_wanted": ...,
  "gas_used": ...,
  "tx": ...,
  "timestamp": ...,
}
const address = "terra1..."
const network = "mainnet"

// getTxCanonicalMsgs
const actionRuleset = createActionRuleSet(network)
const actionLogMatcher = createLogMatcherForActions(actionRuleset)
const actionMatchedMsg = getTxCanonicalMsgs(JSON.stringify(tx), actionLogMatcher)

console.log(actionMatchedMsg)


// getTxAmountInfo
const amountRuleset = createAmountRuleSet(network)
const amountLogMatcher = createLogMatcherForAmounts(amountRuleset)
const amountMatchedMsg = getTxAmounts(JSON.stringify(tx), amountLogMatcher, address)

console.log(amountMatchedMsg)

```
npm package: @hexxagon/msg-reader
Description: Convert common terra.js msg to a sentence
Author: Hexxagon
Latest version: 3.0.1

# @hexxagon/msg-reader

Convert common terra.js msg to a sentence

## Installation

```
npm i @hexxagon/msg-reader
```

## Example codes

```typescript
import { Coins, Coin, MsgSend } from "@hexxagon/terra.js"
import { readMsg } from "@hexxagon/msg-reader"

const coins = new Coins([new Coin("uluna", 1000000), new Coin("ukrw", 1000000)])

const address = "terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v"
const recipient = "terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp"

const msg = new MsgSend(address, recipient, [coin])

console.log(readMsg(msg))
// Send 1 Luna to terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp
```
npm package: @hexys/midwayjs-tcp
Description: ## 1. 安装
Author: zhagqn
Latest version: 0.0.5

# Midway TCP 组件

## 1. 安装

```
npm i @hexys/midwayjs-tcp
```

项目中引用并配置

```typescript
// src/configuration.ts

import * as tcp from '@hexys/midwayjs-tcp';

@Configuration({
  imports: [tcp],
  importConfigs: [join(__dirname, './config')],
})
export class ContainerLifeCycle implements ILifeCycle {
  // ...
}
```

## 2. 使用

### 1. 依赖注入

```typescript
export class TCPService {
  @Inject('tcp:manager')
  tcpClientManager: TCPClientManager;
}
```

### 2. 连接

`TCPClientOptions` 为连接参数配置项

```typescript
interface TCPClientOptions {
  host: string;
  port: number;
  // 重连时间，单位毫秒
  reconnect?: number;
  logger?: ILogger;
  type?: MessageType;
  onconnect?: (TCPClientOptions) => any;
  onclose?: (TCPClientOptions) => any;
  ondata?: (TCPClientOptions) => any;
}
```

`MessageType` 标识消息类型，RCU、PMS 或没有类型

```typescript
enum MessageType {
  RCU = 'rcu',
  PMS = 'pms',
  NONE = '',
}
```

使用配置项发起 TCP 连接，如果已有相同配置连接，则复用。否则建立新连接。

```typescript
const tcpClient = this.tcpClientManager.connect({
  host: host,
  port: parseInt(port),
  reconnect: 1000,
  type: type || MessageType.NONE,
});
```

### 3. 发送消息/关闭连接

```typescript
// 发送消息
tcpClient.send(message);

// 关闭连接
tcpClientManager.destroy({host, port});
```

### 4. TCP 事件处理装饰器

连接事件装饰器

```typescript
@OnConnect()
async onconnect({ port, host, type }) {
  // ...
}
```

关闭事件装饰器

```typescript
@OnClose()
async onclose({ port, host, type }) {
  // ...
}
```

消息事件装饰器

```typescript
@OnData()
async ondata({ port, host, type, buffer }) {
  // ...
}
```
npm package: @hexze/mctext
Description: Minecraft text formatting for JavaScript/WASM
Latest version: 1.3.2

# mctext

Minecraft text formatting, parsing, and rendering library. Features all the exact glyphs used ingame, for the fonts of both pre and post-1.13.

## Language Support

| Language | Package | Registry |
|----------|---------|----------|
| Rust | `mctext` | [crates.io](https://crates.io/crates/mctext) |
| Python | `mctext` | [PyPI](https://pypi.org/project/mctext) |
| JavaScript | `@hexze/mctext` | [npm](https://npmjs.com/package/@hexze/mctext) |

## Features

- **Builder API** - Fluent interface for constructing formatted text
- **Color Support** - All 16 named Minecraft colors plus RGB hex colors
- **Style Handling** - Bold, italic, underlined, strikethrough, obfuscated
- **Font Rendering** - Measure and render text with authentic Minecraft fonts
- **Legacy Support** - Parse `§` formatting codes and JSON chat components

## Font Showcase

![Font Showcase](https://raw.githubusercontent.com/hexze/mctext/master/showcase.png)

## Fonts Only

Looking for just the TTF files? Download them from the [releases page](https://github.com/hexze/mctext/releases):

- `minecraft-fonts-modern.zip` - Latest Minecraft fonts (updated, cleaner look)
- `minecraft-fonts-legacy.zip` - Classic fonts for those who prefer pre-1.13
- `minecraft-fonts-special.zip` - Enchanting and Illager fonts

## Usage

### Rust

```toml
[dependencies]
mctext = "1.0"

# With legacy fonts:
mctext = { version = "1.0", features = ["legacy-fonts"] }
```

```rust
use mctext::{MCText, NamedColor};

let text = MCText::new()
    .span("Red ").color(NamedColor::Red)
    .then("Bold").color(NamedColor::Red).bold()
    .build();

for span in text.spans() {
    println!("{}: {:?}", span.text, span.color);
}
```

### Python

```bash
pip install mctext
```

```python
import mctext

text = mctext.MCText().span("Red ").color("red").then("Bold").color("red").bold().build()

for span in text.spans():
    print(f"{span.text}: {span.color}")
```

### JavaScript (Node.js)

```bash
npm install @hexze/mctext
```

```javascript
const { MCText } = require('@hexze/mctext');

let text = new MCText().span("Red ").color("red").then("Bold").color("red").bold().build();

for (const span of text.spans()) {
    console.log(`${span.text}: ${span.color}`);
}
```

### JavaScript (Browser/ES Modules)

```javascript
import init, { MCText } from '@hexze/mctext';

await init();

let text = new MCText().span("Red ").color("red").then("Bold").color("red").bold().build();
```

## License

MIT
npm package: @hey-api/client-nuxt
Description: 🚀 Nuxt client for `@hey-api/openapi-ts` codegen.
Author: Hey API
Latest version: 0.4.2
Deprecated: Starting with v0.73.0, this package is bundled directly inside @hey-api/openapi-ts.

<div align="center">
  <img alt="Hey API logo" height="150" src="https://heyapi.dev/images/logo-300w.png" width="150">
  <h1 align="center"><b>Nuxt Client</b></h1>
  <p align="center">🚀 Nuxt client for `@hey-api/openapi-ts` codegen.</p>
</div>

<!-- TODO: add working example once StackBlitz updates their Node version -->
<!-- [Live demo](https://stackblitz.com/edit/hey-api-client-nuxt-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2Fcomponents%home.vue) -->

## Features

- seamless integration with `@hey-api/openapi-ts` ecosystem
- type-safe response data and errors
- response data validation and transformation
- access to the original request and response
- granular request and response customization options
- minimal learning curve thanks to extending the underlying technology
- support bundling inside the generated output
- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds

## Dashboard

Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with our platform.

[Sign In](https://app.heyapi.dev) to Hey API platform.

## Documentation

Please visit our [website](https://heyapi.dev) for documentation, guides, migrating, and more.

## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
  <a href="https://kutt.it/pkEZyc" target="_blank">
    <img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
  </a>
</p>

## Migration Guides

[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
npm package: @hey-api/rollup-plugin
Description: 🚀 Vite/Rollup plugin for `@hey-api/openapi-ts` codegen.
Author: Hey API
Latest version: 0.1.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<div align="center">
  <img alt="Hey API logo" height="150" src="https://heyapi.dev/images/logo-300w.png" width="150">
  <h1 align="center"><b>Vite/Rollup Plugin</b></h1>
  <p align="center">🚀 Vite/Rollup plugin for `@hey-api/openapi-ts` codegen.</p>
</div>

## Platform

Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).

## Documentation

Please visit our [website](https://heyapi.dev/) for documentation, guides, migrating, and more.

## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
  <a href="https://kutt.it/pkEZyc" target="_blank">
    <img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
  </a>
</p>

## Usage

Add to `plugins` inside your Vite/Rollup configuration.

```ts
import { heyApiPlugin } from '@hey-api/rollup-plugin';

export default defineConfig({
  plugins: [
    heyApiPlugin({
      config: {
        // optional configuration instead of using the configuration file
      },
    }),
  ],
});
```