1.0.0 ā€¢ Published 3 years ago

faren.db v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NPM: Move to the page

Example

const faren = require('faren.db');
const db = new faren({
path: 'db-bot'
})

// Example

db.set("faren.db", "Super fast db")
console.log(db.get("faren.db"))

// Coded by Farenvis

DateBase Operations

Set value

db.set("f-db","welcome to my db!")

Delete value

db.del("f-db")

Has value?

db.has("f-db")

DateBase Math operations

Subctraction

db.subtract("f-db_subtract", "70")

Add

db.add("f-db_subtract", "420")

DateBase Backup

Save backup

db.backup("save")

Read backup

db.backup("read")

DateBase Extraction

Extract all values from DB without SHA256 Encrypting:

db.extract("<filname>", "false")

Extract all values from DB with permament hashing:

db.extract("<filname>", "true")

DateBase Clean

Note: If you didn't backup your DB your data will be permamently lost!

Clean db:

db.cleandb()

Clean backup:

db.cleanbackup()

Installation

Linux & Windows

  • npm i faren.db

Author

šŸ‘¤ Farenvis.

License

Copyright Ā© 2021 Faren.db.