# nibble-db

> small size database which uses file system to manage you data

Latest version **0.0.4** (published 2017-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install nibble-db
pnpm add nibble-db
yarn add nibble-db
bun add nibble-db
```

## 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-03-26 |
| First published | 2017-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Manish Kumar |
| Maintainers | man1989 |
| Keywords | local-store, local-storage, local-database |

## Links

- npm: https://www.npmjs.com/package/nibble-db
- Repository: https://github.com/man1989/nibble-db
- Issues: https://github.com/man1989/nibble-db/issues
- npm.io page: https://npm.io/package/nibble-db

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2017-03-26
- 0.0.3 — 2017-03-26
- 0.0.2 — 2017-03-26
- 0.0.1 — 2017-03-26

## README

# nibble-db
small database which uses nodejs fs module to store you data
### Prerequisites
you need to have node version 6 and above
### installing
```
npm install nibble-db
```
### Example
How to require and insert a record
```
const db = require("nibble-db");
let users = db.useCollection("users"); // will create and return collection called "users"
users.insert({"name":"Logan"});
users.insert({"name":"Batman"});
```
### Find the record(s)
how to quey the records,
```
users.find({}) //will return all the records for users collection
users.find({"name":"Batman"}) //will return the matched record
```

### update the record(s)
```
//will update the record, first param is query object and second params is property that items you want to add
users.update({name:"Logand"}, {"Property":"Marvel"}); 
```

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