@outilx/browser API
Browser utility functions for modern web development.
Note: This package re-exports all utilities from
@outilx/corefor backward compatibility. For runtime-agnostic code, consider using@outilx/coredirectly.
Modules
Installation
bash
npm install @outilx/browserQuick Example
typescript
import { getNetWorkInfo, LocalStorageCache } from '@outilx/browser';
// Network info
const info = getNetWorkInfo();
// { status: 'online', type: '4g', rtt: 50, downlink: 10 }
// Persistent cache using LocalStorage
const storage = new LocalStorageCache('my_app_');
await storage.set('user', { name: 'John' });