# @nebula/core-utils

Small, dependency-free utilities shared across Nebula Core packages. No DOM or platform assumptions.

## What it does

- Provides tiny, reusable math helpers.
- Exposes a minimal event emitter for small, decoupled messaging.
- Stays platform-agnostic so it works in browser, Electron, or Node.

## Included utilities

- `clamp(value, min, max)` — Clamp a number between bounds.
- `lerp(from, to, t)` — Linear interpolation between two numbers.
- `roundTo(value, decimals)` — Round to a fixed decimal precision.
- `createEmitter()` — Lightweight emitter with `on`, `emit`, and `clear`.

## Typical use cases

- Input or navigation modules needing small math helpers.
- App-level messaging without pulling in larger event libraries.
- Shared helpers across packages in the monorepo.
