SeanJM / chrome-db

A small library to interface with the Chrome extensions database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A small library to interface with the Chrome extensions database


Languages

Language:JavaScript 100.0%