@just-web/browser-preferences
TypeScript icon, indicating that this package has built-in type declarations

8.4.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @just-web/browser-preferences

Weekly Downloads

0

Version

8.4.2

License

MIT

Unpacked Size

38.4 kB

Total Files

52

Last publish

Collaborators

  • unional