Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 864 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 864 Bytes

nestjs-cloud-pubsub

Actions Status Coverage Status

The @google-cloud/pubsub NestJS module

Install

npm install nestjs-cloud-pubsub @google-cloud/pubsub

Usage

@Module({
  imports: [PubsubModule.forRoot({})],
})
export class AppModule {}

Inject Pubsub instance

@Injectable()
export class AppService {
  constructor(
    @InjectPubsub()
    private readonly pubsub: Pubsub
  ) {}
}

Contributing

PRs accepted.

License

MIT © CADDi Co.,Ltd