1.1.3 • Published 2 months ago

@volare.finance/nestjs.plugins v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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/"
  }
}
1.1.1

2 months ago

1.1.3

2 months ago

1.1.2

2 months ago

1.1.0

5 months ago

2.0.0-alpha.9

5 months ago

2.0.0-alpha.8

5 months ago

2.0.0-alpha.7

6 months ago

2.0.0-alpha.6

6 months ago

2.0.0-alpha.5

6 months ago

2.0.0-alpha.4

6 months ago

2.0.0-alpha.2

6 months ago

2.0.0-alpha.1

6 months ago

2.0.0-alpha.0

6 months ago

1.0.6

6 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

12 months ago

1.0.0

12 months ago