open-index/open-npm huggingface dataset:
npm package: @maur025/core-commands
Description: utility library to declare and extend the command pattern in Typescript.
Author: maur025
Latest version: 1.0.1

# Overview

Utility library to declare and extend Command Pattern, inspired by the java implementation.

## Installation

Use the following command to install:

### Using pnpm:

```bash
pnpm add @maur025/core-commands
```

### Using npm:

```bash
npm install @maur025/core-commands
```

### Using yarn:

```bash
yarn add @maur025/core-commands
```

## Usage

Using thi library is simple. Extend **AbstractCommand** class to create a command. Override the `run` method(required) and optionally `validate` for custom validations.

---

## Example

### Command (example.cmd.ts)

```ts
import { AbstractCommand } from "@maur025/core-commands";

export default class ExampleCmd extends AbstractCommand<Request, void> {
	protected validate(request: Request): void {
		console.log("VALIDATING...");
	}

	protected run(request: Request): void {
		console.log("EXECUTING EXAMPLE...");
	}
}

interface Request {
	paramOne: string;
	paramTwo: number;
	paramN: string;
}
```

Your can assign any value to the input and output. These can be declarated as interfaces, classes, or primitive types.

---

### Usage in your code (example.controller.ts)

```ts
import ExampleCmd from "src/command/example.cmd.ts";

const exampleCmd = new ExampleCmd();

export default class ExampleController {
	processData = (): void => {
		exampleCmd
			.withRequest({
				paramOne: "example",
				paramTwo: 2,
				paramN: "any value",
			})
			.execute();
	};
}
```

## Suggestions

To improve code maintainability and reduce verbosity, consider using a Dependency Injection (DI) container to handle command instantation.

For example:

- This avoids manually using `new ExampleCmd()` in your classes.
- Promote better separation and makes testing easier.
npm package: @maur025/core-common
Description: utility library to declare common util class and functions.
Author: maur025
Latest version: 1.0.1

# Overview

Utility library to declare and extend common utilities.

## Installation

Use the following command to install:

### Using pnpm:

```bash
pnpm add @mauro25/core-common
```

### Using npm:

```bash
npm install @mauro25/core-common
```

### Using yarn:

```bash
yarn add @mauro25/core-common
```
npm package: @maur025/core-logger
Description: utility library to logger with winston and chalk for backend node.
Author: maur025
Latest version: 1.0.0

# Overview

Utility library to logging in console.

## Installation

Use the following command to install:

### Using pnpm:

```bash
pnpm add @maur025/core-logger
```

### Using npm:

```bash
npm install @maur025/core-logger
```

### Using yarn:

```bash
yarn add @maur025/core-logger
```

## USAGE

Add the next variables in to .env:

```text
LOG_PATH='silly'
LOG_PATH=logs
```

Level can be any value of **_RFC5424_**

```typescript
const levels = {
	error: 0,
	warn: 1,
	info: 2,
	http: 3,
	verbose: 4,
	debug: 5,
	silly: 6,
};
```
npm package: @maur025/core-model-data
Description: utility library to declare and extend the model data in Typescript.
Author: maur025
Latest version: 2.2.1

# Overview

Utility library to declare and extend model data.

## Installation

Use the following command to install:

### Using pnpm:

```bash
pnpm add @maur025/core-model-data
```

### Using npm:

```bash
npm install @maur025/core-model-data
```

### Using yarn:

```bash
yarn add @maur025/core-model-data
```
npm package: @maurerkrisztian/tempalte-client
Description: Nestjs Api client for https://github.com/MaurerKrisztian/tempalte-api-tm
Author: Maurer Kirsztian
Latest version: 1.0.2

# template-client

Nestjs Api client for https://github.com/MaurerKrisztian/tempalte-api-tm

```typescript

    getTemplateHtml(templateName: string, data: any): Promise<string>
    getTemplatePdfBuffer(templateName: string, data: any): Promise<ArrayBuffer> 
    getTemplatePdfStream(templateName: string, data: any): Promise<ArrayBuffer> 
    
```