open-index/open-npm huggingface dataset:
npm package: @it-era/ngx-safe-pipes
Description: This library provide convenient pipes to bypass Angular built-in sanitization and get rid off the `unsafe value used in a ... context`.
Author: Quentin Petel @ IT-era
Latest version: 0.3.1

# IT-era / NgxSafePipes

This library provide convenient pipes to bypass Angular built-in sanitization and get rid off the `unsafe value used in a ... context`.

This package is a part of the [IT-era/ngx](https://github.com/it-era/ngx) packages suite.

[![GitHub](https://badgen.net/github/tag/it-era/ngx-safe-pipes?color=green)](https://github.com/it-era/ngx-safe-pipes)
[![Npm](https://badgen.net/npm/v/@it-era%2Fngx-safe-pipes?color=green)](https://www.npmjs.com/package/@it-era/ngx-safe-pipes)
[![Bundle size](https://badgen.net/bundlephobia/minzip/@it-era/ngx-safe-pipes?color=green)](https://bundlephobia.com/result?p=@it-era/ngx-safe-pipes)

## Installation

[![npm](https://nodei.co/npm/@it-era/ngx-safe-pipes.png?mini=true)](https://www.npmjs.com/package/@it-era/ngx-safe-pipes)

This package is available through the [npm registry](https://www.npmjs.com/package/@it-era/ngx-safe-pipes) :

```sh
npm i @it-era/ngx-safe-pipes
```

Then add the `NgxSafePipesModule` into the imports array of your module (containing the template to fix) :

```ts
import { NgxSafePipesModule } from '@it-era/ngx-safe-pipes'

@NgModule({
  imports: [
    NgxSafePipesModule,
    // ...
  ],
})
export class YourModule {}
```

## List of pipes

CAUTION: Calling thoses methods with untrusted user data exposes your application to [XSS security risks](https://angular.io/guide/security#xss)!

### SafeHtml

Usage :

```HTML
<div [innerHTML]="trustedHtml | safeHtml"></div>
```

### SafeUrl

Usage :

```HTML
<img [attr.src]="trustedUrl | safeUrl">
```

NB: Usefull also for base64 images.

### SafeResourceUrl

Usage :

```HTML
<iframe [attr.src]="trustedResourceUrl | safeResourceUrl"></iframe>
```

### SafeScript

Usage :

```HTML
<script [attr.src]="trustedScript | safeScript"></script>
```

### SafeStyle

Usage :

```HTML
<div [attr.style]="trustedStyle | safeStyle"></div>
```

### Safe

Alternatively, you could use the generic SafePipe with the following syntax:

```HTML
 <div [innerHTML]="trustedHtml | safe: 'html'"></div>
 <div [attr.style]="trustedStyle | safe: 'style'"></div>
 <script [attr.src]="trustedScript | safe: 'script'"></script>
 <img [attr.src]="trustedUrl | safe: 'url'">
 <iframe [attr.src]="trustedResourceUrl | safe: 'resourceUrl'"></iframe>
```

## Changelog

You can find it [here](https://github.com/it-era/ngx-safe-pipes/blob/master/CHANGELOG.md).
npm package: @it-healer/bitcoin-bip39
Description: CLI application for converting BIP39 mnemonic to Bitcoin Core descriptors
Author: IT-HEALER
Latest version: 1.0.2

# Bitcoin-BIP39

**bitcoin-bip39** — CLI-утилита для генерации [Bitcoin Core import descriptors](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md) на основе BIP39 мнемонической фразы (seed) с поддержкой форматов BIP44 / BIP49 / BIP84 / BIP86.  
Может работать в режиме `watch-only` или с приватными ключами.

---

## 📦 Установка

Глобально:

```bash
npm install -g @it-healer/bitcoin-bip39
```

Либо без установки (через npx):

```bash
npx --yes @it-healer/bitcoin-bip39 "<mnemonic>" "<optional passphrase>" --network=mainnet --watchonly=false
```

`Требуется Node.js v18+.`

## 🚀 Использование

`Синтаксис`

```bash
bitcoin-bip39 "<mnemonic>" "<passphrase>" [--network=mainnet|testnet] [--watchonly=true|false]
```

`Параметры`
•	<mnemonic> — обязательная BIP39 мнемоника (12–24 слова).
•	<passphrase> — дополнительный пароль (опционально, по умолчанию пустая строка).
•	--network — mainnet или testnet (по умолчанию: mainnet).
•	--watchonly — true или false (по умолчанию: false).

## 📄 Вывод

Утилита возвращает JSON с информацией:

```json
{
  "success": true,
  "network": "mainnet",
  "watchOnly": false,
  "fingerprint": "d90c6a4f",
  "descriptors": [
    {
      "desc": "wpkh([d90c6a4f/84h/0h/0h]xprv.../0/*)#abcd1234",
      "timestamp": 1733800944,
      "active": true,
      "internal": false,
      "range": [0, 999],
      "next_index": 0,
      "purpose": 84
    }
  ]
}
```

•	desc — готовый дескриптор с контрольной суммой (совместим с importmulti в Bitcoin Core).
•	internal — false для внешних адресов (0/), true для внутренних (1/).
•	purpose — соответствует стандарту BIP:
•	44 — Legacy (pkh)
•	49 — Nested SegWit (sh(wpkh(...)))
•	84 — Native SegWit (wpkh)
•	86 — Taproot (tr)


## 🔒 Безопасность
```
⚠ Внимание: передача мнемоники в командной строке небезопасна — она может попасть в историю терминала и быть видна в списке процессов (ps).
Рекомендуется передавать её через stdin:
```

```bash
echo '{"mnemonic":"...","passphrase":"","network":"mainnet","watchonly":false}' | bitcoin-bip39 --stdin
```
npm package: @it-incubator/nestjs-logger
Description: ## Install
Latest version: 0.0.7

# @it-incubator/nestjs-logger

## Install

```
npm install @it-incubator/nestjs-logger

yarn add @it-incubator/nestjs-logger

pnpm i @it-incubator/nestjs-logger
```
## Usage


```javascript
import { MyCustomLogger } from '@it-incubator/nestjs-logger'
```

#### NestJS module create

Basic module config (default level log "**trace**"):

```typescript
import { Global, Module } from '@nestjs/common';
import { LoggerFactory, LoggerService } from '@it-incubator/nestjs-logger';

@Global()
@Module({
    providers: [
        LoggerService,
        {
            provide: 'LoggerFactory',
            useFactory: () => {
                const logger = LoggerFactory.logger;
                logger.level = process.env.LOGER_LEVEL || 'trace';
            },
        },
    ],
    exports: [LoggerService],
})
export class LoggingModule {}
```

Add new transport (default transport console)

```typescript
@Global()
@Module({
    providers: [
        LoggerService,
        {
            provide: 'LoggerFactory',
            useFactory: () => {
                const logger = LoggerFactory.logger;
                logger.level = process.env.LOGER_LEVEL || 'trace';
                const transports = LoggerFactory.transports;
                const newTransport = new transports.Http({
                    //configure options
                });
                logger.add(newTransport);
            },
        },
    ],
    exports: [LoggerService],
})
export class LoggingModule {}
```

Disable default transport

```typescript
@Global()
@Module({
    providers: [
        LoggerService,
        {
            provide: 'LoggerFactory',
            useFactory: () => {
                const logger = LoggerFactory.logger;
                logger.level = process.env.LOGER_LEVEL || 'trace'; 
                LoggerFactory.disableDefaultTransport();
            },
        },
    ],
    exports: [LoggerService],
})
export class LoggingModule {}
```

Use logger
```typescript
import { Injectable } from '@nestjs/common';
import { LoggerService, MyCustomLogger } from '@it-incubator/nestjs-logger';

@Injectable()
export class Service {
    private logger: MyCustomLogger;
    
    constructor( private loggerService: LoggerService ) {
        this.logger = this.loggerService.createLogger(Service.name);
    }
}
```
Use interceptor controller methods trace by logged input and output trace log every controller method
```typescript
import { Controller, Get, UseInterceptors } from '@nestjs/common';
import { LoggerFactory, LoggingInterceptor } from '@it-incubator/nestjs-logger';

@Controller('')
@UseInterceptors( new LoggingInterceptor(LoggerFactory.createLogger(ReferalController.name)) )
export class ReferalController {
    constructor() {}
    
    @Get()
    someMethod() {
        //logic
    }
}


```
npm package: @it-incubator/nestjs-prom-metrics
Description: ## Install
Latest version: 0.0.18

# @it-incubator/nestjs-logger

## Install

```
npm install @it-incubator/nestjs-prom-metrics

yarn add @it-incubator/nestjs-prom-metrics

pnpm add @it-incubator/nestjs-prom-metrics
```
## Usage


```javascript
import { MetricsModule } from '@it-incubator/nestjs-prom-metrics';
```

#### NestJS module create

```typescript
import { Module } from '@nestjs/common';
import { MetricsModule } from '@it-incubator/nestjs-prom-metrics';

@Module({
    imports: [
        MetricsModule.register('you_app_name'),
    ],
    controllers: [],
    providers: [],
})
export class AppModule {}
```
npm package: @it-incubator/nodejs-storage-sdk
Description: ## Install
Latest version: 0.0.3

# @it-incubator/nodejs-storage-sdk

## Install

```
npm install @it-incubator/nodejs-storage-sdk

yarn add @it-incubator/nodejs-storage-sdk

pnpm i @it-incubator/nodejs-storage-sdk
```
## Usage

#### NodeJS service create 

Basic service config NodeJS:

```typescript
import { StorageService } from '@it-incubator/nodejs-storage-sdk';

const storageService = NodejsStorageService.register({
    baseURL: 'https://storage-service-url',
    headers: {
        'service-token': 'your-token'
    }
})

```
```typescript
import { StorageService, CreateFileDto, File } from '@it-incubator/nodejs-storage-sdk';

export class MyService {
    constructor(private readonly storageService: StorageService) {}
    
    async create(dto: CreateFileDto) {
        this.storageService.create(dto)
    }

    async delete(id: string) {
        this.storageService.deleteById(id)
    }

    async update(id: string, dto: File) {
        this.storageService.updateById(id, dto)
    }

    async getFile(id: string) {
        this.storageService.getById(id)
    }
}

```
npm package: @it-incubator/storage-sdk
Description: ## Install
Latest version: 0.0.9

# @it-incubator/storage-sdk

## Install

```bash
npm install @it-incubator/storage-sdk

yarn add @it-incubator/storage-sdk

pnpm i @it-incubator/storage-sdk
```
## Usage


```javascript
import { StorageModule } from '@it-incubator/storage-sdk'
```

#### NestJS module create

Basic module config NestJS:

```typescript
import { Global, Module } from '@nestjs/common';
import { StorageModule } from '@it-incubator/storage-sdk';

@Global()
@Module({
  imports: [
      StorageModule.register({
          baseURL: 'https://storage-service-url',
          headers: {
              'service-token': 'your-token'
          }
      })
  ]
})
export class MyModule {}
```

StorageService use NestJS

```typescript
import { Controller, Get, UseInterceptors } from '@nestjs/common';
import { StorageService, CreateFileDto, File } from '@it-incubator/storage-sdk';

@Injectable()
export class MyService {
    constructor(private readonly storageService: StorageService) {}
    
    async create(dto: CreateFileDto) {
        this.storageService.create(dto)
    }

    async delete(id: string) {
        this.storageService.deleteById(id)
    }

    async update(id: string, dto: File) {
        this.storageService.updateById(id, dto)
    }

    async getFile(id: string) {
        this.storageService.getById(id)
    }
}

```