1.2.0 • Published 5 years ago

undefine-db v1.2.0

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

simple key-value database api wrapper for undefine-db

šŸ  Homepage

Join our Discord for support and help etc!

Requirements

The undefine-db can be hosted locally You should checkout this before installing this. The repository contains the code to run undefine-db and connect to it using this wrapper https://github.com/oadpoaw/undefine-db

Install

npm install undefine-db

Example Usage

const { UndefineDB } = require('undefine-db');
const db = new UndefineDB('http://localhost:4201/');

await db.connect('databaseTokenHere', () => {
  console.log(`Database connected!`);
});

const data = await db.get('undefine'); // returns null if not found, so this is null, because its not in the database
await db.set('undefine', { lol: 'xd' }); // 'undefine': { "lol": "xd" }
const newData = await db.get('undefine');
console.log(newData); // { "lol": "xd" }
await db.delete('undefine'); // goodbye

Documentation

See Documentation

Author

šŸ‘¤ oadpoaw

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 oadpoaw. This project is MIT licensed.

1.2.0

5 years ago

1.1.1

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago