# fs-dbengine

> Use fs as a dbengine.

Latest version **2.0.0** (published 2020-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-dbengine
pnpm add fs-dbengine
yarn add fs-dbengine
bun add fs-dbengine
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-11-11 |
| First published | 2019-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zulivan |
| Maintainers | zulivan |
| Keywords | fs-db |

## Links

- npm: https://www.npmjs.com/package/fs-dbengine
- Repository: https://github.com/Zulivan/fs-dbengine
- Homepage: https://github.com/Zulivan/fs-dbengine#readme
- Issues: https://github.com/Zulivan/fs-dbengine/issues
- npm.io page: https://npm.io/package/fs-dbengine

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) ^8.0.1

## Recent versions

- 2.0.0 (latest) — 2020-11-11
- 1.1.0 — 2019-06-13
- 1.0.0 — 2019-06-13
- 0.0.6 — 2019-06-12
- 0.0.5 — 2019-06-12
- 0.0.4 — 2019-06-12
- 0.0.3 — 2019-06-12
- 0.0.2 — 2019-06-10
- 0.0.1 — 2019-06-10

## README

# FS-DBENGINE
Because __fsdb__ was already taken.
This module allows you to save data without having an actual database server.
This solution is an experiment despite the fact that it is ~~theoretically stable~~ in beta.

## Tree:

```
fsdb (Customizable name) 
│
└─── __cache (Customizable name)
│   │   saves.json (Manages the backup system)
│   │
│   └─── backup
│       │   1560377410 
│       │   1560377440
│       │   ...
│       (A folder that contains all backups called by the time they were created)
│   
└─── Database1 (Customizable name)
│    └─── Collection1 (Customizable name)
│    │      table1.json (Customizable name)
│    │      table2.json (Customizable name)
│    │      ...
│    │
│    └─── Collection2 (Customizable name)
│        │   table1.json (Customizable name)
│        │   table2.json (Customizable name)
│        │   ...
│        (Each JSON file has stringified json)
│   
└─── Database2 (Customizable name)
│   └─── Collection (Customizable name)
│   │   │   Table.json (Customizable name)
│   │   │   ...
│   │   ...
│   ...
...
```

## Features:
- [x] Fully customizable.

- [x] Save a defined amount of backups or none.

- [x] Create/Access collections.

- [x] Create/Set tables.

- [x] Access and set nested data structures (see test.js).

- [x] Delete keys from a table.

- [X] Use backups to fix a corrupted file.

<a href="https://nodei.co/npm/fs-dbengine/"><img src="https://nodei.co/npm/fs-dbengine.png"></a>

#### I don't know what to think about it... Even the idea of someone who will ever try it and give their feedback happens to be miraculous.

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