@frontend-guard-org/core
v0.1.1
Published
Framework-agnostic utility for explicit async execution and error handling
Readme
@frontend-guard-org/core
Framework-agnostic error and guard utilities for frontend applications.
This package contains the core logic of frontend-guard-org and does not depend on any UI framework.
Installation
npm install @frontend-guard-org/coreWhat it provides
guard(...)– safe execution wrapperGuardError– normalized error model- Error normalization utilities
Usage
import { guard } from '@frontend-guard-org/core'
const result = guard(() => {
// risky logic
})
if (!result.ok) {
console.error(result.error)
}Scope
- No framework dependencies
- Designed to be consumed by adapters (React, Vue, etc.)
License
MIT
