open-index/open-npm huggingface dataset:
npm package: @katarzynastrumidlo/id_generator
Description: This package is used to generate a random string of characters.
Author: Katarzyna Strumidło
Latest version: 1.0.3

This package is used to generate a random string of characters.

Instalation:

`npm install @katarzynastrumidlo/id_generator`

`yarn add @katarzynastrumidlo/id_generator`
npm package: @katdev/service-discovery
Description: Service discovery and registry for microservices
Latest version: 1.0.0

# Service Discovery Package

A simple, in-memory service registry for microservices. Perfect for development and small deployments.

## Features

- ✅ Service registration
- ✅ Automatic health checks (heartbeat)
- ✅ Service discovery
- ✅ Load balancing (round-robin)
- ✅ Automatic cleanup of unhealthy instances
- ✅ Easy NestJS integration

## Quick Start

### 1. Install and Build

```bash
cd packages/service-discovery
npm install
npm run build
```

### 2. Use in Your Service

```typescript
import { Module } from '@nestjs/common';
import { ServiceDiscoveryModule } from '@audit-hub/service-discovery';

@Module({
  imports: [ServiceDiscoveryModule],
})
export class AppModule {}
```

### 3. Register Your Service

```typescript
import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
import { ServiceDiscoveryClientImpl } from '@audit-hub/service-discovery';

@Injectable()
export class MyService implements OnModuleInit, OnModuleDestroy {
  private instanceId: string | null = null;

  constructor(private readonly discoveryClient: ServiceDiscoveryClientImpl) {}

  async onModuleInit() {
    // Register this service when it starts
    this.instanceId = await this.discoveryClient.registerService('my-service', 3000, 'http');
    console.log(`Service registered: ${this.instanceId}`);
  }

  async onModuleDestroy() {
    // Deregister when shutting down
    if (this.instanceId) {
      await this.discoveryClient.deregisterService(this.instanceId);
    }
  }
}
```

### 4. Discover Other Services

```typescript
// Get URL of another service
const authUrl = await this.discoveryClient.getServiceUrl('auth-service', 'http');

// Get all instances
const instances = await this.discoveryClient.getServiceInstances('auth-service');
```

## How It Works

1. **Registration**: Service registers itself when it starts
2. **Heartbeat**: Service sends heartbeat every 10 seconds
3. **Discovery**: Other services can find it by name
4. **Cleanup**: Unhealthy services are automatically removed

## Production Note

For production, replace `InMemoryServiceRegistry` with:
- Consul
- Eureka
- Kubernetes DNS
- etcd

The interface stays the same, just swap the implementation!
npm package: @kate_shpak_07/eslint-plugin-path-checker
Description: production
Author: kate
Latest version: 0.0.23

# eslint-plugin-path-checker

production

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-path-checker`:

```sh
npm install eslint-plugin-path-checker --save-dev
```

## Usage

In your [configuration file](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-file), import the plugin `eslint-plugin-path-checker` and add `path-checker` to the `plugins` key:

```js
import { defineConfig } from "eslint/config";
import path-checker from "eslint-plugin-path-checker";

export default defineConfig([
    {
        plugins: {
            path-checker
        }
    }
]);
```


Then configure the rules you want to use under the `rules` key.

```js
import { defineConfig } from "eslint/config";
import path-checker from "eslint-plugin-path-checker";

export default defineConfig([
    {
        plugins: {
            path-checker
        },
        rules: {
            "path-checker/rule-name": "warn"
        }
    }
]);
```



## Configurations

<!-- begin auto-generated configs list -->
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
<!-- end auto-generated configs list -->



## Rules

<!-- begin auto-generated rules list -->
TODO: Run eslint-doc-generator to generate the rules list.
<!-- end auto-generated rules list -->