Skip to main content

12 docs tagged with "Utilities"

View all tags

Codec

The eridu-tech/codec component provides seamless way to encode/decode data.

Collection

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

Config accessor

The eridu-tech/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).

Env accessor

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

ErrorPolicy type

The ErrorPolicy type determines which errors should be handled for example in resilience middlewares like retry or fallback.

FileSize

The eridu-tech/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.

Generic pool

The eridu-tech/generic-pool component reuses expensive resources instead of creating a new one for every call. The examples below pool SFTP connections created with ssh2-sftp-client, which are slow to open and cannot be shared by concurrent operations.

Invocable

An Invocable represents a callable entity, which can be either:

Resilience

The eridu-tech/resilience component provides predefined fault tolerant middlewares.

Serde

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

TimeSpan

The eridu-tech/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.