Skip to content

5 helpers

wiki[bot] edited this page Aug 23, 2026 · 1 revision

5. Helpers: The @triplef/helpers Library

A shared utility library providing helper functions for the tripleF project. @triplef/helpers is published to npm as an ESM-only package.

This library is ESM-only and does not support CommonJS. Your project must use ES modules.

Modules

Module Description
5.1. Bootstrap NestJS app configuration, validation pipeline, swagger setup, logging
5.2. Environment Variables Parse environment variables as boolean or numeric values
5.3. Find Up Recursively search for a file by traversing up the directory tree
5.4. Hash Payload Generate cryptographic hashes (SHA-256, SHA-384, SHA-512)
5.5. Is Buffer or Serialized Cross-platform buffer detection (Buffer, ArrayBuffer, TypedArray, DataView, serialized)
5.6. Object I/O Clone, merge, pick, omit, and check objects for emptiness
5.7. Text To Lines Split text into sentences (Western and CJK punctuation)

Installation

npm install @triplef/helpers

Peer Dependencies

This library requires the following peer dependencies:

npm install @nestjs/common @nestjs/swagger joi

Clone this wiki locally