susdatabase
v1.0.0
Published
the main package is not mine, it is keyv
Downloads
3
Readme
note: this package is not for use yet, i haven't tested it
idk
this package was made to use keyv easier
example
const pack = require('susdatabase')
pack.combine('masterkey', 'some stuff')
const mydb = new pack('some mongodb or idk url', 'my db name', 'my key')
// param: defaultValue
mydb.getAsync(1).then(console.log).catch(console.log)
// param: value
mydb.setAsync('my value').then(() => console.log('hooray')).catch(console.log)