Skip to content

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-objects
bash
yarn add @haskou/value-objects

Reference sections

SectionContents
Base objectsValueObject, NullObject, Enum
Strings and numbersStringValueObject, Email, Color, Password, NumberValueObject, Integer, PositiveNumber
IdentifiersUUID, ShortId
TimeTimestamp, TimestampInterval, CalendarDay, Duration, Hour, Day, Year, Month, MonthOfYear, DayOfWeek
CoordinatesLatitude, Longitude, Coordinates
HashesHash, MD5Hash, SHA256Hash, SHA512Hash
MediaMedia
CollectionsUniqueObjectArray
Crypto helpersKeyPair, 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.

Released under the MIT License.