@firebase/app
This is the primary entrypoint to the Firebase JS SDK. All apps using firebase
will need this package. Other @firebase
packages are typically mounted on to
the namespaces exposed by this package.
Installation
You can install this package by running the following in your project:
$ npm install @firebase/app
Usage
You can then use the firebase namespace exposed by this package as illustrated
below:
ES Modules
Referencing the firebase
export:
import { firebase } from '@firebase/app';
Referencing the default export:
import firebase from '@firebase/app';
CommonJS Modules
const firebase = require('@firebase/app').default;
Documentation
For comprehensive documentation please see the Firebase Reference
Docs.