Skip to main content

12 docs tagged with "Utilities"

View all tags

Codec

The @daiso-tech/core/codec component provides seamless way to encode/decode data.

Collection

The @daiso-tech/core/collection component provides a fluent, convenient wrapper for working with a Array, Iterable and AsyncIterable.

ConfigAccessor

The @daiso-tech/core/config-accessor component provides standardized type-safe access to domain configuration variables. It supports optional schema validation useful accessing dynamic configurations (e.g tenneat configurations).

EnvAccessor

The @daiso-tech/core/env-accessor component provides easy type-safe access to enviroment variables.

Execution Context

The @daiso-tech/core/execution-context module provides a type-safe, composable, and environment-agnostic way to store and propagate contextual data (such as request IDs, user info, or tracing metadata) across async boundaries and function calls. It is inspired by thread-local storage and context propagation in distributed systems, but is designed for modern TypeScript/JavaScript applications.

FileSize

The @daiso-tech/core/file-size component provides an easy way for defining, manipulating, and comparing file size. Furthermore, it is designed for easy integration with external file size libraries.

Middleware

The @daiso-tech/core/middleware module provides a flexible middleware system for intercepting and composing function calls. It enables you to wrap functions with pre-processing and post-processing logic, similar to middleware patterns found in web frameworks like Express.js.

Namespace

The @daiso-tech/core/namespace component provides seamless way to group data by prefixing and suffixing keys.

Resilience

The @daiso-tech/core/resilience component provides predefined fault tolerant middlewares.

Serde

The @daiso-tech/core/serde component provides seamless way to serialize/deserialize data and adding custom serialization/deserialization logic for custom data types.

TimeSpan

The @daiso-tech/core/time-span component provides an easy way for defining, manipulating, and comparing durations. Furthermore, it is designed for easy integration with external time libraries like Luxon and Dayjs.