1.0.0 • Published 3 years ago
susdatabase v1.0.0
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)
1.0.0
3 years ago