# @leonardvandriel/flame

> A Firebase REST API on a local in-memory database.

Latest version **0.0.4** (published 2017-07-10) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @leonardvandriel/flame
pnpm add @leonardvandriel/flame
yarn add @leonardvandriel/flame
bun add @leonardvandriel/flame
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-07-10 |
| First published | 2017-01-27 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Leo Vandriel |
| Maintainers | leonardvandriel |
| Keywords | Firebase, REST, local, memory |

## Links

- npm: https://www.npmjs.com/package/@leonardvandriel/flame
- Repository: https://github.com/taptalk/flame
- Homepage: https://github.com/taptalk/flame#readme
- Issues: https://github.com/taptalk/flame/issues
- npm.io page: https://npm.io/package/@leonardvandriel/flame

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2017-07-10
- 0.0.3 — 2017-07-03
- 0.0.2 — 2017-01-27
- 0.0.1 — 2017-01-27

## README

<img src="icon.jpg" alt="Flame Icon" width="72"/>


Flame
======

*A Firebase REST API on a local in-memory database.*

With Flame you can use the Firebase REST API on a local in-memory database. This is useful when you for example want to run tests locally.


## Installation

    npm install @leonardvandriel/flame


## Usage

    const flame = require('@leonardvandriel/flame')

    // load database
    const json = '{ "user": { "abcd": { "name": "John", "age": 85 } } }'
    flame.loadJSON(json)
    // or read from file: const json = fs.readFileSync('database.json', 'utf8')

    // Read user
    console.log(flame.get('/user/abcd'))

    // Add user
    flame.put('/user/efgh', { name: 'Romona Moten', age: 20 })

    // Query users
    console.log(flame.get('/user/abcd', { orderBy: 'age', limitToLast: 1, startAt: 10 }))


## Tests

    npm test


## License

Flame is licensed under the terms of the BSD 3-Clause License, see the included LICENSE file.


## Authors

- Leo Vandriel

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