open-index/open-npm huggingface dataset:
npm package: @idp-front/translate-multi-http-loader
Description: Provides opportunity for loading several files at the same time
Latest version: 1.0.4

Provides opportunity for loading several files at the same time

## Install

```javascript
npm i @idp-front/translate-multi-http-loader
```

## Example

```javascript
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MultiTranslateHttpLoader } from '@idp-front/translate-multi-http-loader';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';

@NgModule({
  imports: [
    CommonModule,
    TranslateModule.forRoot({
      defaultLanguage: 'ru_RU',
      loader: {
        provide: TranslateLoader,
        useFactory: () =>
          new MultiTranslateHttpLoader(['/assets/i18n/', '/assets/shared/i18n/']),
      },
    }),
  ],
})
export class AppModule {}
```
npm package: @idpartner/logger
Description: Wrapper for winston package. The purpose of this library is to allow the team to change the underlying technology (if need be) without having to change the interface already used by our services.
Latest version: 1.1.1

# `@idpartner/logger`

Wrapper for winston package. The purpose of this library is to allow the team to change the underlying technology (if need be) without having to change the interface already used by our services.

## Usage

```
const Logger = require('@idpartner/logger');

const logger = Logger({
  // Set log level
  level: 'debug',

  // Set metadata that will be present in all logs 
  defaultMeta: { version: '1.0.0', service: 'dashboard-service' }
});

// Simple usage
logger.info('test info level message');
logger.warn('test warn level message');
logger.error('test error level message');

// Usage with extra metadata
logger.info('test info level message', { timestamp: Date.now() });
logger.warn('test warn level message', { warningCode: 568 });
logger.error('test error level message', { errorMessage: 'Something went wrong') });
```