Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ⚡🚀
- Host: GitHub
- URL: https://github.com/angelhtml/angeldb
- Owner: angelhtml
- License: mit
- Created: 2023-01-07T20:27:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T19:38:43.000Z (12 months ago)
- Last Synced: 2024-12-01T07:45:36.827Z (2 months ago)
- Topics: angel-db, angelcodestyle, database, fastdata, javascript, json, json-database, jsondb, localstorage, nodejs, nodejs-database, nosql, nosql-database, storage
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Angel DB
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();
```