kevast-chrome
v0.0.2
Published
Chrome storage for kevast.js
Downloads
13
Maintainers
Readme
kevast-chrome.js
A chrome storage for kevast.js.
Installation
Node.js
Using yarn
yarn add kevast-chrome
Using npm
npm install kevast-chrome
Browser
<script src="https://cdn.jsdelivr.net/npm/kevast-chrome/dist/kevast-chrome.min.js"></script>
Usage
const { Kevast } = require('kevast');
const { KevastChrome } = require('kevast-chrome');
const assert = require('assert');
(async () => {
const kevast = new Kevast(new KevastChrome());
await kevast.set('key', 'value');
assert(await kevast.get('key') === 'value');
})();