@orveth/core
v0.1.1
Published
Lifecycle interfaces and package metadata helpers for Orveth.
Maintainers
Readme
@orveth/core
Package name
@orveth/core
Purpose
Shared cross-package primitives that are not specific to HTTP, configuration, logging, or validation.
Installation
pnpm add @orveth/coreBasic usage
import { createPackageMetadata, type Disposable } from "@orveth/core";
const meta = createPackageMetadata("@orveth/core", "0.1.1");
const resource: Disposable = {
dispose() {
// close sockets, timers, etc.
},
};API overview
Exports:
Disposable,InitializableinterfacesPackageMetadatatype andcreatePackageMetadata()
Design notes
This package stays intentionally small to avoid becoming a grab-bag module.
Error behavior
These helpers do not throw in normal use. Implementations of Disposable.dispose may throw; callers should treat that as part of their own shutdown policy.
TypeScript notes
This package ships .d.ts declarations and is authored in TypeScript strict mode.
License
Released under the MIT License. See the repository LICENSE file.
