Overview

What @koalarx/utils is and when to use it.

@koalarx/utils is the Koala ecosystem utility library for TypeScript/JavaScript: masks (CPF/CNPJ/currency), dates/times, arrays, delays, and timers.

Style Import Best for
Class @koalarx/utils/KlString Explicit chaining
Core function same module Tree-shaking (primitive return)
Operators @koalarx/utils/operators Frontend — fluent .
Prototypes @koalarx/utils/prototypes Backend — global DX in main

There is no pipe(). With operators, start from the function: format(date).split('/').

  • Node >=20.18.0
  • Bun >=1.2.0
  • Dependencies: date-fns, validation-br
  • Optional peer: date-holidays (holidays; not a hard dependency, so unused installs stay lean)