@just-web/browser-preferences
v8.4.2
Published
browser implementation for @just-web/preferences
Downloads
12
Readme
@just-web/browser-preferences
@just-web/browser-preferences provides the implementation of @just-web/preferences on the browser.
Install
# 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
Depends on
Usage
import { justApp } from '@just-web/app'
import { browserGizmoFn } from '@just-web/browser'
import { commandsGizmoFn } from '@just-web/commands'
import { keyboardGizmoFn } from '@just-web/keyboard' // optional
import { browserPreferencesGizmo } from '@just-web/browser-preferences'
const app = await justApp({name: 'your-awesome-app'})
.with(commandsGizmoFn())
.with(keyboardGizmoFn())
.with(browserGizmoFn())
.with(browserPreferencesGizmo)
.create()
// using the `preferences` API.
app.preferences.get(...)
app.preferences.set(...)
app.preferences.clear(...)
app.preferences.clearAll()