Skip to content

Installation

Latest published version: v0.2.0

npm install @jayoncode/browser-lifecycle@0.2.0

Install @jayoncode/browser-lifecycle from npm when the package is published, or link it from the monorepo during development.

npm

Pin the current release when you need a specific version:

bash
npm install @jayoncode/browser-lifecycle

Or install the latest explicitly:

bash
npm install @jayoncode/browser-lifecycle@latest
bash
pnpm add @jayoncode/browser-lifecycle
bash
yarn add @jayoncode/browser-lifecycle

Monorepo development

From the JOC repository:

bash
pnpm install
pnpm build:packages

Import from the workspace package:

ts
import { createBrowserLifecycle } from "@jayoncode/browser-lifecycle";

Browser support

Browser Lifecycle uses feature detection and degrades gracefully when platform APIs are unavailable. See Browser Support for module-level requirements.

Next steps

JOC is a JayOnCode monorepo of @jayoncode/* packages. Docs sync from source via TypeDoc and sync scripts.