https://github.com/lnardon/neadb
NEaDB is a package to simulate a small and easy to use database using node and json
https://github.com/lnardon/neadb
database json module npm typescript yarn
Last synced: 3 months ago
JSON representation
NEaDB is a package to simulate a small and easy to use database using node and json
- Host: GitHub
- URL: https://github.com/lnardon/neadb
- Owner: lnardon
- Created: 2020-10-18T06:40:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-24T21:23:04.000Z (about 3 years ago)
- Last Synced: 2025-01-10T17:49:53.693Z (over 1 year ago)
- Topics: database, json, module, npm, typescript, yarn
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/neadb
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NEaDB
[](https://www.npmjs.com/package/neadb) [](https://standardjs.com)
Not Exactly a DataBase(NEaDB) is a package to simulate a small and easy-to-use database using node and json. This database module uses a key-value pair to store the values in a json file.
## Installation
```bash
npm install neadb
```
## Usage
```js
const { neadb } = require("neadb");
const db = neadb();
```
## Available functions
```js
db.create(); // Creates database file
db.createKey(key); // Creates json key to store values
db.deleteKey(key); // Deletes json key with it's value
db.storeValue(key, value); // Stores value in a given key
db.deleteValue(key); // Deletes value in a given key
db.getValue(key); // Retrieves value from given key
db.getLastUpdated(); // Retrieves last update date from database file
```