9.0.1 • Published 2 years ago

@nicholas.braun/nestjs-firebase v9.0.1

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

nestjs-firebase

Actions Status npm version

This will not be maintained

This is a fork of https://github.com/g59/nestjs-plugins/tree/main/packages/nestjs-firebase which does not yet support nestjs version 9.

Install

For nestjs version 9:

npm install @nicholas.braun/nestjs-firebase

For nestjs version 8:

npm install nestjs-firebase

Usage

@Module({
  imports: [
    FirebaseModule.forRoot({
      googleApplicationCredential: "path/to/credential file.json",
    }),
  ],
})
export class AppModule {}

// using in service class
export class Service {
  constructor(
    @InjectFirebaseAdmin() private readonly firebase: FirebaseAdmin,
  ) {}
}

Contributing

PRs accepted.

License

MIT © g59

9.0.1

2 years ago

9.0.0

2 years ago