A script to interface with the chrome extension database using Promises.
const db = new ChromeDB();
db
.get(['object', 'path'])
.then(result => {
// Process results
});
Getting it using an object path
const db = new ChromeDB();
db
.get('object.path')
.then(result => {
// Process results
});
const db = new ChromeDB();
db
.set(['object', 'path'], 'test')
.then(result => {
// Process results
});
Setting it using an object path
const db = new ChromeDB();
db
.set('object.path', 'test')
.then(result => {
// Process results
});