/chrome-db

A small library to interface with the Chrome extensions database

Primary LanguageJavaScript

Chrome DB

A script to interface with the chrome extension database using Promises.

.get

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
  });

.set

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
  });