# @lemasc/firebase-wrapper

> This library provides a minimum, tree-shakable API that wraps various functions of the Firebase SDKs (as needed by the RianArai project) and make sure that it's compatiable with both namespaced version (currently on React Native) and modular version (on t

Latest version **1.1.1** (published 2023-01-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lemasc/firebase-wrapper
pnpm add @lemasc/firebase-wrapper
yarn add @lemasc/firebase-wrapper
bun add @lemasc/firebase-wrapper
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-01-01 |
| First published | 2022-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 625.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lemasc |

## Links

- npm: https://www.npmjs.com/package/@lemasc/firebase-wrapper
- Homepage: https://github.com/lemasc/firebase-wrapper.git#readme
- Issues: https://github.com/lemasc/firebase-wrapper/issues
- npm.io page: https://npm.io/package/@lemasc/firebase-wrapper

## Recent versions

- 1.1.1 (latest) — 2023-01-01
- 1.1.0 — 2023-01-01
- 1.0.1 — 2022-12-05
- 1.0.0 — 2022-12-05

## README

# @lemasc/firebase-wrapper

This library provides a minimum, tree-shakable API that wraps various functions of the Firebase SDKs (as needed by the RianArai project) and make sure that it's compatiable with both namespaced version (currently on React Native) and modular version (on the web).

## Installation

Install the library first.

```sh
npm install @lemasc/firebase-wrapper
```

This library adds compatibilty while preserving tree shaking benefits by using **resolve extensions** and **module alias**.

Depending on your framework and tools, this configuration might be different.

### With React Native

This library already provides support for React Native. By default we expect that you use

- `react-native-firebase` (Namespaced version) on mobile
- `firebase` (Modular version) on the Web

If you are using these dependencies, you are ready! Skip to the Usage section and it should work out of the box.


## Usage

```js
import { initializeApp, getApps, getApp } from "@lemasc/firebase-wrapper/app";
import { 
  getAuth, 
  // Most functions should also worked!
  signInWithCredential 
} from "@lemasc/firebase-wrapper/app"

// Your firebase config here.
const firebaseConfig = { ... }

const app = !getApps().length ? initializeApp(firebaseConfig) : getApp()
const auth = getAuth(app)
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

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