Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

NestJS-Libs/nestjs-elastic-transcoder

 
 

Repository files navigation

NestJS Elastic Transcoder

forRoot method

@Module({
  imports: [
    ElasticTranscoderModule.forRoot({
      accessKeyId: '',
      region: '',
      secretAccessKey: ''
    })
  ]
})
export class AppModule {}

forRootAsync method

@Module({
  imports: [
    ElasticTranscoderModule.forRootAsync({
      imports: [ConfigModule.forFeature(elasticTranscoderLoader)],
      inject: [ConfigService],
      useFactory(configService: ConfigService) {
        return {
          accessKeyId: configService.get('accessKeyId'),
          region: configService.get('region'),
          secretAccessKey: configService.get('secretAccessKey')
        };
      }
    })
  ]
})
export class AppModule {}

forFeature method

@Module({
  imports: [
    ElasticTranscoderModule.forFeature()
  ]
})
export class VideosModule {}

About

A AWS Elastic Transcoder module for NestJS created using ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.0%
  • JavaScript 11.0%