# eren.db

> ✨ a simple module that instantly stores your data as JSON

Latest version **0.0.3** (published 2022-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install eren.db
pnpm add eren.db
yarn add eren.db
bun add eren.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.3 |
| Published | 2022-10-25 |
| First published | 2022-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @romanws |
| Maintainers | romanws |
| Keywords | database, db, quick.db, quickdb, dbl |

## Links

- npm: https://www.npmjs.com/package/eren.db
- npm.io page: https://npm.io/package/eren.db

## Dependencies (1)

- [croxydb](https://npm.io/package/croxydb.md) ^0.0.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2022-10-25
- 0.0.2 — 2022-10-25
- 0.0.1 — 2022-10-25

## README

# ErenDB

> ✨ a simple module that instantly stores your data as JSON

Examples

```js
const erendb = require("eren.db")
const db = erendb({
    "dbName": "test", // Our DB file name.
    "dbFolder": "database", // Our DB folder name.
    "noBlankData": true,
    "readable": true,
});

db.set("x.y.z", "abc") // abc

db.get("x") // {y: {z: "abc"}}
db.all() // {x: {y: {z: "abc"}}}

db.push("a", "hello") //  ["hello"]
db.push("a", "world") //  ["hello", "world"]
db.unpush("a", "hello") // ["world"]

db.push("b", {test: "erendb"}) // [{test: "erendb"}]
db.push("b", {test2: "erendb2"}) // [{test: "erendb"}, {test2: "erendb2"}]
db.delByPriority("b", 1) // [{test2: "erendb"}]
db.setByPriority("b", {newtest:"hey this is edited"} 1) // [{newtest:"hey this is edited"}]

db.delete("x") // true
db.deleteAll() // true

db.getLength() // 8
```

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