stack

Home > @infiniteobjects/core-library-node

core-library-node package

Shared functionality for NodeJS apps

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.
Environment Utilities to work with environment variables
FileSystem The FileSystem API provides a complete set of recommended operations for interacting with the file system.
Functions Utility Functions
Html Utilities to transform HTML strings
Humanize Utilities to transform units to human readable strings.
Import The Import API provides helpers to optimize with imports
Logger Loggin utilities
Numbers Number related utilities.
Obj Utilities to deal with objects.
Parser Parsing Utilities
Random Utilities to generate random values
Sort Operations for sorting collections.
StringBuilder This class allows a large text string to be constructed incrementally by appending small chunks. The final string can be obtained by calling StringBuilder.toString().
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
IDeleteFolderOptions Delete Folder Options
IStringBuilder An interface for a builder object that allows a large text string to be constructed incrementally by appending small chunks.

Type Aliases

Type Alias Description
AsyncMapper Function which is called for every item in input. Expected to return a Promise or value.
IFindInFolderOptions Find In Folder Options
IQueryParameters A list of Query Parameters
IsEmailOptions isEmail options
IsURLOptions IsUrl options
LoggerInstance Logger Instance
LoggerOptions Logger Options
SentryErrorEmmitter SentryErrorEmmitter that should ultimately end up on Sentry. Must implement context in the Sentry.captureException() call
YamlCastOptions Yaml Parser Options
YamlParserOptions Yaml Parser Options