JSPM

@rbxts/firebase

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 11
    • Score
      100M100P100Q31699F
    • License ISC

    Firebase real-time database wrapper for Roblox

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/firebase) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      @rbxts/firebase

      Firebase real-time database wrapper for Roblox
      Note: Almost every method call makes an HTTP requests. Cache results to avoid going over HTTP request limit as well as optimize performance.

      Example

      import { Firebase } from "@rbxts/firebase";
      
      const url = "https://my-default-rtdb.firebaseio.com/";
      const auth = "tHiSisAveRYrEaLFiRebAsEAuTHkeY"
      const firebase = new Firebase(url, auth);
      
      async function doStuff(): void {
        const runicsCoins = await firebase.get("playerData/44966864/coins");
        print(runicsCoins);
      
        await firebase.increment("playerData/44966864/coins", 100); // give 100 coins
      }