isadb2

2.0.0-export • Public • Published

🤩 IsaDB2 - The New IsaDB!!

IsaDB2 - The new method of saving

npm square documentation

About

The IsaDB2 is the new method of saving, creating a .isadb2 file, you can make a new database local.

See the docs! for ptBR language

Compatibility: Works with CommonJS an EcmaScript

Instalation

Tested in Node v18.7.0

npm install isadb2

Example Usage

Install isadb2:

npm install isadb2

Creating a instance and saving things

//using Ecma
import { create, get, set } from 'isadb2'

async function main() {
    await create() //create instance
    
    await set('foo', 'bar') //save inside db.isadb2
    console.log(await get('foo')) //returns -> bar
}

//using CommonJS
const isadb2 = require('isadb2')

async function main() {
    await isadb2.create() //create instance
    
    await isadb2.set('foo', 'bar') //save inside db.isadb2
    console.log(await isadb2.get('foo')) //returns -> bar
}

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation Check the repository if you'd like to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to make a issue in GitHub

Package Sidebar

Install

npm i isadb2

Homepage

isadb.js.org

Weekly Downloads

1

Version

2.0.0-export

License

MIT

Unpacked Size

13.1 kB

Total Files

3

Last publish

Collaborators

  • renatiin