Value Objects documentation
A TypeScript library for validated, immutable primitive wrappers and small utility value objects.
Documentation
This site is the main documentation for @haskou/value-objects. Use it as the source of truth for installation, examples, errors, serialization notes, and the API reference.
Start here
Package
bash
npm install @haskou/value-objectsbash
yarn add @haskou/value-objectsReference sections
| Section | Contents |
|---|---|
| Base objects | ValueObject, NullObject, Enum |
| Strings and numbers | StringValueObject, Email, Color, Password, NumberValueObject, Integer, PositiveNumber |
| Identifiers | UUID, ShortId |
| Time | Timestamp, TimestampInterval, CalendarDay, Duration, Hour, Day, Year, Month, MonthOfYear, DayOfWeek |
| Coordinates | Latitude, Longitude, Coordinates |
| Hashes | Hash, MD5Hash, SHA256Hash, SHA512Hash |
| Media | Media |
| Collections | UniqueObjectArray |
| Crypto helpers | KeyPair, PrivateKey, PublicKey, SymmetricKey, payload value objects |
Agent skill
Reusable agent instructions and engineering skills live in haskou/ddd-engineer-skills.
This repository documents and ships the runtime library. The skill repository is separate on purpose.