Skip to content

Angel DB is a fast json database that allows you to insert data, delete and edit βš‘πŸš€

License

Notifications You must be signed in to change notification settings

angelhtml/angeldb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

78 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

npm i angeldb

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


Usage

import AngelDB to your project

const angel = require('angeldb');

add your json file

const angel = require('angeldb');

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

add an object to the json file

await angels.set({ id: 0, username: "StarBoy", email: "StarBoy@test.com" });

find your objects in the json file

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

update objects in the json file

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

remove objects in the json file

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

Delete all objects in the json file

await angels.xo();