# fndb

Latest version **0.0.5** (published 2021-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install fndb
pnpm add fndb
yarn add fndb
bun add fndb
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2021-04-19 |
| First published | 2021-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | euklidian-space |

## Links

- npm: https://www.npmjs.com/package/fndb
- Repository: https://github.com/gabrielgrover/FnDB
- npm.io page: https://npm.io/package/fndb

## Dependencies (2)

- [react-native-uuid](https://npm.io/package/react-native-uuid.md) ^2.0.0
- [@react-native-async-storage/async-storage](https://npm.io/package/@react-native-async-storage/async-storage.md) ^1.15.1

## Recent versions

- 0.0.5 (latest) — 2021-04-19
- 0.0.4 — 2021-04-18
- 0.0.3 — 2021-04-18
- 0.0.2 — 2021-04-18
- 0.0.1 — 2021-04-18

## README

[FnDB]() – The React Native Document database/ORM
=========

FnDB is an open-source document database and ORM for React Native.

FnDB was created to help react native developers build offline first applications.

Using FnDB
-------------

```typescript
  import { createModel } from "fndb";

  const User = createModel("User", {
    name: String,
    age: Number,
    admin: Boolean
  });

  const id = await User.newDoc({
    name: "duder",
    age: 21,
    admin: true
  });

  const { name, age, admin } = await User.getDoc(id);

  await User.updateDoc(id, {
    admin: false
  });
```

Contributing
------------

We're always looking for new contributors!

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