# @fanfix/nestjs-firebase

> @nestjs with firebase

Latest version **9.0.2** (published 2022-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fanfix/nestjs-firebase
pnpm add @fanfix/nestjs-firebase
yarn add @fanfix/nestjs-firebase
bun add @fanfix/nestjs-firebase
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 9.0.2 |
| Published | 2022-12-23 |
| First published | 2022-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 173 |
| Unpacked size | 25.2 KB |
| Known vulnerabilities | 0 (+8 in 5 direct dependencies) |
| Install scripts | no |
| Author | Fanfix Team |
| Maintainers | dylanhensel, daylorza, jonathanmavandi, anthony_fanfix |
| Keywords | nest, firebase |

## Links

- npm: https://www.npmjs.com/package/@fanfix/nestjs-firebase
- Repository: https://github.com/fanfix/nestjs-firebase
- Issues: https://github.com/fanfix/nestjs-firebase/issues
- npm.io page: https://npm.io/package/@fanfix/nestjs-firebase

## Dependencies (173)

- [ms](https://npm.io/package/ms.md) ^2.1.2
- [ent](https://npm.io/package/ent.md) ^2.2.0
- [jwa](https://npm.io/package/jwa.md) ^2.0.0
- [jws](https://npm.io/package/jws.md) ^4.0.0
- [tmp](https://npm.io/package/tmp.md) ^0.2.1
- [glob](https://npm.io/package/glob.md) ^8.0.3
- [jose](https://npm.io/package/jose.md) ^2.0.6
- [klaw](https://npm.io/package/klaw.md) ^3.0.0
- [levn](https://npm.io/package/levn.md) ^0.3.0
- [long](https://npm.io/package/long.md) ^4.0.0
- [mime](https://npm.io/package/mime.md) ^3.0.0
- [once](https://npm.io/package/once.md) ^1.4.0
- [pump](https://npm.io/package/pump.md) ^3.0.0
- [rxjs](https://npm.io/package/rxjs.md) ^7.6.0
- [tr46](https://npm.io/package/tr46.md) ^0.0.3
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [y18n](https://npm.io/package/y18n.md) ^5.0.8
- [acorn](https://npm.io/package/acorn.md) ^8.8.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [cliui](https://npm.io/package/cliui.md) ^7.0.4
- [debug](https://npm.io/package/debug.md) ^4.3.4
- [jsdoc](https://npm.io/package/jsdoc.md) ^3.6.11
- [mdurl](https://npm.io/package/mdurl.md) ^1.0.1
- [retry](https://npm.io/package/retry.md) ^0.13.1
- [stubs](https://npm.io/package/stubs.md) ^3.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.4.1
- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [arrify](https://npm.io/package/arrify.md) ^2.0.1
- [espree](https://npm.io/package/espree.md) ^9.4.1
- [extend](https://npm.io/package/extend.md) ^3.0.2
- [gaxios](https://npm.io/package/gaxios.md) ^5.0.2
- [gtoken](https://npm.io/package/gtoken.md) ^6.1.2
- [is-obj](https://npm.io/package/is-obj.md) ^2.0.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [marked](https://npm.io/package/marked.md) ^4.2.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [semver](https://npm.io/package/semver.md) ^5.7.1
- [wrappy](https://npm.io/package/wrappy.md) ^1.0.2
- [deep-is](https://npm.io/package/deep-is.md) ^0.1.4
- [esprima](https://npm.io/package/esprima.md) ^4.0.1
- [esutils](https://npm.io/package/esutils.md) ^2.0.3
- [iterare](https://npm.io/package/iterare.md) ^1.2.1
- [limiter](https://npm.io/package/limiter.md) ^1.1.5
- [mime-db](https://npm.io/package/mime-db.md) ^1.52.0
- [p-limit](https://npm.io/package/p-limit.md) ^3.1.0
- [pumpify](https://npm.io/package/pumpify.md) ^2.0.1
- [taffydb](https://npm.io/package/taffydb.md) ^2.6.2
- [yallist](https://npm.io/package/yallist.md) ^4.0.0
- [argparse](https://npm.io/package/argparse.md) ^2.0.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [dot-prop](https://npm.io/package/dot-prop.md) ^5.3.0
- [entities](https://npm.io/package/entities.md) ^2.1.0
- [escalade](https://npm.io/package/escalade.md) ^3.1.1
- [has-flag](https://npm.io/package/has-flag.md) ^4.0.0
- [inflight](https://npm.io/package/inflight.md) ^1.0.6
- [inherits](https://npm.io/package/inherits.md) ^2.0.4
- [jwks-rsa](https://npm.io/package/jwks-rsa.md) ^2.1.5
- [make-dir](https://npm.io/package/make-dir.md) ^3.1.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.7
- [uc.micro](https://npm.io/package/uc.micro.md) ^1.0.6
- [acorn-jsx](https://npm.io/package/acorn-jsx.md) ^5.3.2
- [base64-js](https://npm.io/package/base64-js.md) ^1.5.1
- [catharsis](https://npm.io/package/catharsis.md) ^0.9.0
- [duplexify](https://npm.io/package/duplexify.md) ^4.1.2
- [escodegen](https://npm.io/package/escodegen.md) ^1.14.3
- [is-stream](https://npm.io/package/is-stream.md) ^2.0.1
- [lru-cache](https://npm.io/package/lru-cache.md) ^6.0.0
- [minimatch](https://npm.io/package/minimatch.md) ^5.1.1
- [pseudomap](https://npm.io/package/pseudomap.md) ^1.0.2
- [requizzle](https://npm.io/package/requizzle.md) ^0.2.4
- [uglify-js](https://npm.io/package/uglify-js.md) ^3.17.4
- [word-wrap](https://npm.io/package/word-wrap.md) ^1.2.3
- [wrap-ansi](https://npm.io/package/wrap-ansi.md) ^7.0.0
- [xmlcreate](https://npm.io/package/xmlcreate.md) ^2.0.4
- [agent-base](https://npm.io/package/agent-base.md) ^6.0.2
- [ansi-regex](https://npm.io/package/ansi-regex.md) ^5.0.1
- [color-name](https://npm.io/package/color-name.md) ^1.1.4
- [concat-map](https://npm.io/package/concat-map.md) ^0.0.1
- [estraverse](https://npm.io/package/estraverse.md) ^5.3.0
- [google-gax](https://npm.io/package/google-gax.md) ^3.5.2
- [linkify-it](https://npm.io/package/linkify-it.md) ^3.0.3
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.35
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [node-forge](https://npm.io/package/node-forge.md) ^1.3.1
- [optionator](https://npm.io/package/optionator.md) ^0.8.3
- [prelude-ls](https://npm.io/package/prelude-ls.md) ^1.1.2
- [protobufjs](https://npm.io/package/protobufjs.md) ^7.1.2
- [source-map](https://npm.io/package/source-map.md) ^0.6.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^6.0.1
- [type-check](https://npm.io/package/type-check.md) ^0.3.2
- [underscore](https://npm.io/package/underscore.md) ^1.13.6
- [whatwg-url](https://npm.io/package/whatwg-url.md) ^5.0.0
- [ansi-styles](https://npm.io/package/ansi-styles.md) ^4.3.0
- [async-retry](https://npm.io/package/async-retry.md) ^1.3.3
- [configstore](https://npm.io/package/configstore.md) ^5.0.1
- [emoji-regex](https://npm.io/package/emoji-regex.md) ^8.0.0
- [fs.realpath](https://npm.io/package/fs.realpath.md) ^1.0.0
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.2.10
- [imurmurhash](https://npm.io/package/imurmurhash.md) ^0.1.4
- [json-bigint](https://npm.io/package/json-bigint.md) ^1.0.0
- [lodash.once](https://npm.io/package/lodash.once.md) ^4.1.1
- [markdown-it](https://npm.io/package/markdown-it.md) ^12.3.2
- [object-hash](https://npm.io/package/object-hash.md) ^3.0.0
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.2.1
- [signal-exit](https://npm.io/package/signal-exit.md) ^3.0.7
- [xdg-basedir](https://npm.io/package/xdg-basedir.md) ^4.0.0
- [yocto-queue](https://npm.io/package/yocto-queue.md) ^0.1.0
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.1.1
- [compressible](https://npm.io/package/compressible.md) ^2.0.18
- [gcp-metadata](https://npm.io/package/gcp-metadata.md) ^5.1.0
- [js2xmlparser](https://npm.io/package/js2xmlparser.md) ^4.0.2
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [lru-memoizer](https://npm.io/package/lru-memoizer.md) ^2.1.4
- [stream-shift](https://npm.io/package/stream-shift.md) ^1.0.1
- [string-width](https://npm.io/package/string-width.md) ^4.2.3
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^20.2.9
- [color-convert](https://npm.io/package/color-convert.md) ^2.0.1
- [end-of-stream](https://npm.io/package/end-of-stream.md) ^1.4.4
- [is-typedarray](https://npm.io/package/is-typedarray.md) ^1.0.0
- [retry-request](https://npm.io/package/retry-request.md) ^5.0.2
- [stream-events](https://npm.io/package/stream-events.md) ^1.0.5
- [teeny-request](https://npm.io/package/teeny-request.md) ^8.0.2
- [text-decoding](https://npm.io/package/text-decoding.md) ^1.0.0
- [unique-string](https://npm.io/package/unique-string.md) ^2.0.0
- [balanced-match](https://npm.io/package/balanced-match.md) ^1.0.2
- [faye-websocket](https://npm.io/package/faye-websocket.md) ^0.11.4
- [firebase-admin](https://npm.io/package/firebase-admin.md) ^10.3.0
- [google-p12-pem](https://npm.io/package/google-p12-pem.md) ^4.0.1
- [http-parser-js](https://npm.io/package/http-parser-js.md) ^0.5.8
- [protobufjs-cli](https://npm.io/package/protobufjs-cli.md) ^1.0.2
- [string_decoder](https://npm.io/package/string_decoder.md) ^1.3.0
- [supports-color](https://npm.io/package/supports-color.md) ^7.2.0
- [util-deprecate](https://npm.io/package/util-deprecate.md) ^1.0.2
- [brace-expansion](https://npm.io/package/brace-expansion.md) ^2.0.1
- [fast-deep-equal](https://npm.io/package/fast-deep-equal.md) ^3.1.3
- [get-caller-file](https://npm.io/package/get-caller-file.md) ^2.0.5
- [is-stream-ended](https://npm.io/package/is-stream-ended.md) ^0.1.4
- [lodash.includes](https://npm.io/package/lodash.includes.md) ^4.3.0
- [lodash.isnumber](https://npm.io/package/lodash.isnumber.md) ^3.0.3
- [lodash.isstring](https://npm.io/package/lodash.isstring.md) ^4.0.1
- [readable-stream](https://npm.io/package/readable-stream.md) ^3.6.0
- [abort-controller](https://npm.io/package/abort-controller.md) ^3.0.0
- [fast-levenshtein](https://npm.io/package/fast-levenshtein.md) ^2.0.6
- [http-proxy-agent](https://npm.io/package/http-proxy-agent.md) ^5.0.0
- [lodash.camelcase](https://npm.io/package/lodash.camelcase.md) ^4.3.0
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0
- [lodash.isboolean](https://npm.io/package/lodash.isboolean.md) ^3.0.3
- [lodash.isinteger](https://npm.io/package/lodash.isinteger.md) ^4.0.4
- [path-is-absolute](https://npm.io/package/path-is-absolute.md) ^1.0.1
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [websocket-driver](https://npm.io/package/websocket-driver.md) ^0.7.4
- [event-target-shim](https://npm.io/package/event-target-shim.md) ^5.0.1
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^5.0.1
- [require-directory](https://npm.io/package/require-directory.md) ^2.1.1
- [write-file-atomic](https://npm.io/package/write-file-atomic.md) ^3.0.3
- [fast-text-encoding](https://npm.io/package/fast-text-encoding.md) ^1.0.6
- [markdown-it-anchor](https://npm.io/package/markdown-it-anchor.md) ^8.6.5
- [webidl-conversions](https://npm.io/package/webidl-conversions.md) ^3.0.1
- [ecdsa-sig-formatter](https://npm.io/package/ecdsa-sig-formatter.md) ^1.0.11
- [eslint-visitor-keys](https://npm.io/package/eslint-visitor-keys.md) ^3.3.0
- [google-auth-library](https://npm.io/package/google-auth-library.md) ^8.7.0
- [strip-json-comments](https://npm.io/package/strip-json-comments.md) ^3.1.1
- [crypto-random-string](https://npm.io/package/crypto-random-string.md) ^2.0.0
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^2.0.0
- [lodash.isplainobject](https://npm.io/package/lodash.isplainobject.md) ^4.0.6
- [typedarray-to-buffer](https://npm.io/package/typedarray-to-buffer.md) ^3.1.5
- [websocket-extensions](https://npm.io/package/websocket-extensions.md) ^0.1.4
- [hash-stream-validation](https://npm.io/package/hash-stream-validation.md) ^0.2.4
- [proto3-json-serializer](https://npm.io/package/proto3-json-serializer.md) ^1.1.0
- [is-fullwidth-code-point](https://npm.io/package/is-fullwidth-code-point.md) ^3.0.0
- [functional-red-black-tree](https://npm.io/package/functional-red-black-tree.md) ^1.0.1
- [buffer-equal-constant-time](https://npm.io/package/buffer-equal-constant-time.md) ^1.0.1

## Recent versions

- 9.0.2 (latest) — 2022-12-23
- 8.0.0 — 2022-12-23
- 9.0.1 — 2022-12-19
- 9.0.0 — 2022-12-18

## README

# @fanfix/nestjs-firebase

## Install

```
npm install @fanfix/nestjs-firebase
```

### Usage
### Please note that this version of nestjs-firebase uses the applicationDefault() credentials. If this is *not* what you want, you should consider using the original: 
https://github.com/g59/nestjs-plugins/tree/main/packages/nestjs-firebase


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

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

## Contributing

PRs accepted.

## License

[MIT](https://github.com/g59/nestjs-plugins/blob/main/LICENSE) © g59

---
_Source: https://npm.io/package/@fanfix/nestjs-firebase · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
