browser-extension-storage
v0.1.2
Published
Storage API wrapper for browser extensions, userscripts and bookmarklets
Downloads
24
Maintainers
Readme
browser-extension-storage
Storage API wrapper for browser extensions, userscripts and bookmarklets.
Made for browser-extension-starter.
Usage
npm i browser-extension-storage
# or
pnpm add browser-extension-storage
# or
yarn add browser-extension-storage
Chrome, Firefox extensions
import {
getValue,
setValue,
deleteValue,
listValues,
addValueChangeListener,
} from "browser-extension-storage"
Userscripts
import {
getValue,
setValue,
deleteValue,
listValues,
addValueChangeListener,
} from "browser-extension-storage/userscript"
localStorage
import {
getValue,
setValue,
deleteValue,
listValues,
addValueChangeListener,
} from "browser-extension-storage/local-storage"
License
Copyright (c) 2023 Pipecraft. Licensed under the MIT License.