open-index/open-npm huggingface dataset:
npm package: @ht-kits/react
Description: React kit for hightao recrutment platform
Latest version: 1.0.91

### React Kit for Hightao's recrutement platform
###### - To prepare publishing :
Run :
```sh
npm run prepare:publish
```

###### - To publish :
Run 
```sh
npm publish
```

Note : **Do not forget to upgrade version in package.json when publishing !**
npm package: @ht-os/nestjs-protobuf
Description: ## 安装
Latest version: 0.0.1

# HT OS - NestJS ProtoBuf

## 安装

```bash
pnpm add @ht-os/nestjs-protobuf
```

## 使用方法

### Producer

#### services.module.ts

```typescript
import { ProtobufModule } from '@ht-os/nestjs-protobuf';
import { Module } from '@nestjs/common';

@Module({
  imports: [
    ProtobufModule.forRoot({
      loader: {
        paths: [join(__dirname, '../proto')],
      },
      codec: {
        compress: true,
        compressThreshold: 1024,
      },
    }),
  ],
})
export class ServicesModule {}
```

### Consumer

#### main.ts

```typescript
import {
  ProtobufConsumerDeserializer,
  ProtobufConsumerSerializer,
} from '@ht-os/nestjs-protobuf';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';

const app = await NestFactory.createMicroservice<MicroserviceOptions>(
  AppModule,
  {
    transport: Transport.NATS,
    options: {
      servers: ['nats://localhost:4222'],
      serializer: app.get(ProtobufConsumerSerializer),
      deserializer: app.get(ProtobufConsumerDeserializer),
    },
  },
);
```

#### app.module.ts

```typescript
import { ProtobufModule } from '@ht-os/nestjs-protobuf';
import { Module } from '@nestjs/common';

@Module({
  imports: [
    ProtobufModule.forRoot({
      isGlobal: true,
      loader: {
        paths: [join(__dirname, '../proto')],
      },
      codec: {
        compress: true,
        compressThreshold: 1024,
      },
    }),
  ],
})
export class AppModule {}
```