1.0.0 • Published 1 year ago

irodb v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

IroDB

irodb on npm

Installation

npm i irodb

Example

const { db } = require('irodb');
(async () => {
    const {
        table
    } = await new db({
        cryptData: true,
        path: './database'
        // host: {
        //     url: "http://localhost",
        //     password: 'test1234'
        // }
    });
    const
        userDb = new table("user"),
        userDb2 = new table("test.user2", { cryptData: false });
    await userDb.set('test', 2332323321);
    await userDb2.set('test2', 233232);
    console.log(await userDb.get('test'));
    console.log(await userDb2.get('test'))
})()