Module @just-web/browser-preferences

@just-web/browser-preferences

NPM version NPM downloads

@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 { 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()

Index

Functions

Generated using TypeDoc