Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/angelhtml/angeldb

Angel DB is a fast json database that allows you to insert data, delete and edit ⚡🚀
https://github.com/angelhtml/angeldb

angel-db angelcodestyle database fastdata javascript json json-database jsondb localstorage nodejs nodejs-database nosql nosql-database storage

Last synced: 25 days ago
JSON representation

Angel DB is a fast json database that allows you to insert data, delete and edit ⚡🚀

Awesome Lists containing this project

README

        

Angel DB



Angel code style





img


img
img
angel code style




Angel DB is a fast json database that allows you to insert data, delete and edit


### **Getting started**

```bash
npm i angeldb
```

After the installation you can create a json file and start immediately.


### **Usage**

import AngelDB to your project

```javascript
const angel = require('angeldb');
```

add your json file

```javascript
const angel = require('angeldb');

const angels = angel("./angels.json");
```


add an object to the json file

```javascript
await angels.set({ id: 0, username: "StarBoy", email: "[email protected]" });
```


find your objects in the json file

```javascript
const data = await angels.find(x => x.username === "StarBoy");
```


update objects in the json file

```javascript
await angels.update(x => x.username === "StarBoy", { city: "london" });
```

remove objects in the json file

```javascript
await angels.remove(x => x.city === "london");
```


Delete all objects in the json file

```javascript
await angels.xo();
```