Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Ajauish/myJDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation


About

myJDB is a simple JSON Database that works with keys and values storage.

Installiation

Use latest version of node. Package MUST be installed global.

npm i myjdb

Example Usage

const myJDB = require('myJDB');
const jdb = new myJDB('jdb.json');

jdb.create('key', 'key value')

const value = jdb.import('key');
console.log(value);

jdb.remove('key');

Docs

.create()

Creates a key and a key value

.import()

Grabs the value from a key

.hasKey()

Checks key

.remove()

Deletes the key

.removeAll()

Clears keys

.JSON()

JSON Storage

.JSON({data})

Replaces JSON

.sync()

Sync to disk

Links

NPM
Developer Profile @Discord

Help

If you need any help with this package, you can contact author

About

A fast & simple JSON Database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published