easymapdb
TypeScript icon, indicating that this package has built-in type declarations

2.0.1-dev • Public • Published

easymap.db

New And Better

  • A Simple Database Which Uses JSON Files to store your data

  • Alternative for Quick.db

  • Uses No 3rd Party Dependencies

  • No Complex Sqlite3 like Tool Installations

  • Easy To Transfer data

How To Use?

  • Creating A Database
const { Database } = require('easymapdb')

const db = new Database()

// example

new Database()
  • Add and Subtracting Values
db.add('key', 10)

db.subtract(`key`, 10)
  • Setting Values
db.set('key', "hello world")
  • Getting Values
db.get('key')
  • Pushing Values
    db.push(`key`, {some: "data"}) || db.push(`key`, ["some_data"])
  • Deleting A Key
db.delete('key')
  • Clearing The Database
db.clear()
//or
db.deleteAll()
  • Check if the value exists or not
db.has('key')
  • All The Keys and Values
db.all()
  • Load And Save Data are Uses Less as the database automatically loads and save the keys and values

Readme

Keywords

none

Package Sidebar

Install

npm i easymapdb

Weekly Downloads

12

Version

2.0.1-dev

License

ISC

Unpacked Size

4.89 kB

Total Files

7

Last publish

Collaborators

  • jenil-dev