A lightweight REST client for Firebase Realtime Database, version 1.0.0. It wraps the standard Fetch API to provide a simple interface for CRUD operations, supporting both raw and JSON-parsed responses via `Client` and `JSONClient`. Unlike the official Firebase SDK, it avoids heavy dependencies and can be used in Node.js environments without a full Firebase setup. The package is ESM-only, requires `node-fetch` under the hood, and includes TypeScript type definitions.
npm install firebase-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations using JSONClient with authentication from environment variable.
Use `const FirebaseREST = require('firebase-rest').default;` instead of `const FirebaseREST = require('firebase-rest');`Access them as `FirebaseREST.Client` or `FirebaseREST.JSONClient` after importing the default.
Pass the object directly; the library handles JSON.stringify internally.
Always provide `auth` either in options or via query parameters.
const FirebaseREST = require('firebase-rest').default;Run `npm install firebase-rest` and ensure correct spelling.
Ensure you use the correct import: `import FirebaseREST from 'firebase-rest'` then `new FirebaseREST.JSONClient(...)`
Pass a plain object, e.g., `{ key: 'value' }`, not `JSON.stringify({ key: 'value' })`