Socket
Socket
Sign inDemoInstall

@volare.finance/nestjs.plugins

Package Overview
Dependencies
7
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @volare.finance/nestjs.plugins

@volare.finance/nestjs.plugins


Version published
Maintainers
2
Created

Readme

Source

nestjs.plugins

Config module

usage

export class MyLoggerModule {
  static forRoot(options?: ConfigOptions): DynamicModule {
    return {
      module: MyLoggerModule,
      imports: [ConfigModule.forRoot(options)],
      providers: [
        {
          provide: 'MyLoggerConstant',
          useFactory: (constant: ConfigService<MyLoggerConfig>): MyLoggerConfig => constant.config(),
          inject: [ConfigService],
        },
      ],
    };
  }
}

Logger module

config

{
  "console": {
    "level": "info"
  },
  "cloudwatch": {
    "enabled": false
  }
}

Logging Levels

{
  error: 0,
  warn: 1,
  info: 2,
  http: 3,
  verbose: 4,
  debug: 5,
  silly: 6
}

AWS module

config

{
  "aws": {
    "enabled": true,
    "region": "us-east-2",
    "accessKeyId": "********************",
    "secretAccessKey": "****************************************",
    "bucket": "test-bucket",
    "acl": "public-read",
    "baseUrl": "https://test.example.org"
  }
}

Binance module

config

{
  "binance": {
    "enabled": true,
    "url": "https://data-api.binance.vision"
  }
}

LBank module

config

{
  "lbank": {
    "enabled": true,
    "url": "https://api.lbkex.com"
  }
}

Mexc module

config

{
  "mexc": {
    "enabled": true,
    "url": "https://api.mexc.com"
  }
}

CoinGecko module

config

{
  "coingecko": {
    "enabled": true,
    "url": "https://api.coingecko.com",
    "apiKey": "xxx"
  }
}

ViaBTC module

config

{
  "viabtc": {
    "enabled": true,
    "url": "http://127.0.0.1:18080/"
  }
}

Keywords

FAQs

Last updated on 22 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc