Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlas.js/firebase

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlas.js/firebase

A Firebase-admin service for @atlas.js

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@atlas.js/firebase

A Firebase-admin service for @atlas.js.

Installation

npm i @atlas.js/firebase

Usage

import { Atlas } from '@atlas.js/atlas'
import * as Firebase from '@atlas.js/firebase'

const atlas = new Atlas({
  config: {
    services: {
      firebase: {
        name: 'my-fb-dev',
        // The path, relative to `root`, to the Firebase's credential JSON file
        // you got from the Admin UI
        credential: 'path/to/credential.json',
        // Alternatively, this can be an object which goes directly to
        // `Admin.credential.cert()`:
        credential: {},
        // Your Firebase database URL
        databaseURL: 'my-fb-dev.firebaseio.com',
      }
    }
  }
})
atlas.service('firebase', Firebase.Service)
await atlas.start()

// Your firebase app is now available here:
atlas.services.firebase

// ie.
const users = await atlas.services.firebase.database()
  .ref('/users')
  .once('value')

License

See the LICENSE file for information.

FAQs

Package last updated on 05 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc