@just-web/browser-preferences provides the implementation of @just-web/preferences on the browser.
# npm
npm install @just-web/browser-preferences
# yarn
yarn add @just-web/browser-preferences
# pnpm
pnpm install @just-web/browser-preferences
#rush
rush add -p @just-web/browser-preferences
import { createApp } from '@just-web/app'
import keyboardPlugin from '@just-web/keyboard'
import commandsPlugin from '@just-web/commands'
import preferencesPlugin from '@just-web/preferences'
import bpPlugin from '@just-web/browser-preferences'
const app = createApp({name: 'your-awesome-app'})
.extend(keyboardPlugin())
.extend(commandsPlugin())
.extend(perferencesPlugin())
.extend(bpPlugin())
await app.start()
// using the `preferences` API.
app.preferences.get(...)
app.preferences.set(...)
app.preferences.clear(...)
app.preferences.clearAll()
Generated using TypeDoc