@just-web/browser
v8.4.2
Published
just-web browser plugin module
Downloads
12
Readme
@just-web/browser
@just-web/browser provides browser specific implementations for core features for a @just-web applications.
Architecturally, under the lens of Clean Architecture, @just-web/browser provides the adaptors and external details related to browsers.
Install
# npm
npm install @just-web/browser
# yarn
yarn add @just-web/browser
# pnpm
pnpm install @just-web/browser
#rush
rush add -p @just-web/browser
Usage
import { justApp } from '@just-web/app'
import { browserGizmoFn } from '@just-web/browser'
const app = await justApp({ name: 'your-awesome-app' })
.with(browserGizmoFn())
.create()
app.browser...
Features
app.browser.errors
Captures browser errors for monitoring and inspection.
app.browser.sessionStorage
Expose sessionStorage
from browser for dependency injection.
app.browser.localStorage
Expose localStorage
from browser for dependency injection.
app.browser.navigator
Expose navigator
from browser for dependency injection.
app.browser.location
Expose location
from browser for dependency injection.