stack

Home > @infiniteobjects/core-library

core-library package

This library provides a set utilities that can be used by both NodeJS and Web Projects.

Classes

Class Description
AbortError An error to be thrown when the request is aborted by AbortController.
Address Address related utilities.
Arrays Utilities to interact with Arrays
Assert Utilities for asserting primitives, unique identifiers and strings
Async Utilities for parallel asynchronous operations, for use with the system Promise APIs.
Cast Utilities to cast values.
ChangeCase Utilities to change string cases (kebab, Pascal, ENV, etc).
Context Utilities to understand the context of the current script
Dates Utilities to interact with dates.
Debug Create Debug instances
Duration Utilities to generate durations.
Functions Utility Functions
Humanize Utilities to transform units to human readable strings.
Numbers Number related utilities.
Obj Utilities to deal with objects.
Parser Parsing Utilities
Random Utilities to generate random values
Sort Operations for sorting collections.
Strings String Utilities
Time Utilities to parse times.
Url URL related utilities.
UUID Utilities to generate unique identifiers

Enumerations

Enumeration Description
SentrySeverity Replaces deprecated Sentry.Severity

Functions

Function Description
printBrand(appName, appVersion) Prints the IO brand to the console.

Interfaces

Interface Description
AsyncMapOptions Async.map Options
DebugInstance DebugInstance Type

Type Aliases

Type Alias Description
AsyncMapper Function which is called for every item in input. Expected to return a Promise or value.
IQueryParameters A list of Query Parameters
IsEmailOptions isEmail options
IsURLOptions IsUrl options
SentryErrorEmmitter SentryErrorEmmitter that should ultimately end up on Sentry. Must implement context in the Sentry.captureException() call