helpers - ZeMA-gGmbH/NoPE-JS GitHub Wiki

Namespace: helpers

Author

Martin Karkowski

Email

[email protected]

Helper Library containing different helpers, to simplify some elements.

Namespaces

References

FOLDER_SPLIT

Re-exports FOLDER_SPLIT


IChoice

Re-exports IChoice


ICliMenu

Re-exports ICliMenu


LazyConstructor

Re-exports LazyConstructor


LimitedList

Re-exports LimitedList


MULTI_LEVEL_WILDCARD

Re-exports MULTI_LEVEL_WILDCARD


ParallelPriorityTaskQueue

Re-exports ParallelPriorityTaskQueue


PriorityList

Re-exports PriorityList


RUNNINGINLINUX

Re-exports RUNNINGINLINUX


RUNNINGINNODE

Re-exports RUNNINGINNODE


RUNNINGINWINDOWS

Re-exports RUNNINGINWINDOWS


SEPARATOR

Re-exports SEPARATOR


SINGLE_LEVEL_WILDCARD

Re-exports SINGLE_LEVEL_WILDCARD


SPLITCHAR

Re-exports SPLITCHAR


TLimitedOptions

Re-exports TLimitedOptions


TMenuDefinition

Re-exports TMenuDefinition


TPathCompareResult

Re-exports TPathCompareResult


TSubjectOptions

Re-exports TSubjectOptions


TcomparePatternAndPathFunc

Re-exports TcomparePatternAndPathFunc


_extractArgumentsPartFromFunction

Re-exports _extractArgumentsPartFromFunction


arraysEqual

Re-exports arraysEqual


avgOfArray

Re-exports avgOfArray


callDirect

Re-exports callDirect


callImmediate

Re-exports callImmediate


camelize

Re-exports camelize


capitalizeFirstLetter

Re-exports capitalizeFirstLetter


comparePatternAndPath

Re-exports comparePatternAndPath


containsWildcards

Re-exports containsWildcards


convertData

Re-exports convertData


copy

Re-exports copy


countAllArguments

Re-exports countAllArguments


countArguments

Re-exports countArguments


countElements

Re-exports countElements


createFile

Re-exports createFile


createInteractiveMenu

Re-exports createInteractiveMenu


createPath

Re-exports createPath


deepAssign

Re-exports deepAssign


deepClone

Re-exports deepClone


deepEqual

Re-exports deepEqual


deflattenObject

Re-exports deflattenObject


deletePath

Re-exports deletePath


determineDifference

Re-exports determineDifference


difference

Re-exports difference


dynamicSort

Re-exports dynamicSort


elementInArray

Re-exports elementInArray


exists

Re-exports exists


extractListElement

Re-exports extractListElement


fillOptionalArguments

Re-exports fillOptionalArguments


flattenDeep

Re-exports flattenDeep


flattenObject

Re-exports flattenObject


flattenObjectType

Re-exports flattenObjectType


flattenSchema

Re-exports flattenSchema


generateHash

Re-exports generateHash


generateId

Re-exports generateId


generateResult

Re-exports generateResult


getElement

Re-exports getElement


getEmitterPath

Re-exports getEmitterPath


getLimitedOptions

Re-exports getLimitedOptions


getMethodPath

Re-exports getMethodPath


getPropertyPath

Re-exports getPropertyPath


getSingleton

Re-exports getSingleton


getSubject

Re-exports getSubject


getType

Re-exports getType


insert

Re-exports insert


insertNewLines

Re-exports insertNewLines


isAsyncFunction

Re-exports isAsyncFunction


isEmitterPathCorrect

Re-exports isEmitterPathCorrect


isFloat

Re-exports isFloat


isInt

Re-exports isInt


isJsonSchema

Re-exports isJsonSchema


isMethodPathCorrect

Re-exports isMethodPathCorrect


isObject

Re-exports isObject


isObjectOrArray

Re-exports isObjectOrArray


isPropertyPathCorrect

Re-exports isPropertyPathCorrect


keepPropertiesOfObject

Re-exports keepPropertiesOfObject


limitString

Re-exports limitString


limitedCalls

Re-exports limitedCalls


limitedPush

Re-exports limitedPush


listFiles

Re-exports listFiles


listFolders

Re-exports listFolders


maxOfArray

Re-exports maxOfArray


minOfArray

Re-exports minOfArray


nestSchema

Re-exports nestSchema


objectToMap

Re-exports objectToMap


padString

Re-exports padString


parse

Re-exports parse


parseFunctionToJsonSchema

Re-exports parseFunctionToJsonSchema


parseWithFunctions

Re-exports parseWithFunctions


patternIsValid

Re-exports patternIsValid


recursiveForEach

Re-exports recursiveForEach


reduceSchema

Re-exports reduceSchema


relativePath

Re-exports relativePath


replaceAll

Re-exports replaceAll


rgetattr

Re-exports rgetattr


rqueryAttr

Re-exports rqueryAttr


rsetattr

Re-exports rsetattr


schemaGetDefinition

Re-exports schemaGetDefinition


sleep

Re-exports sleep


stringify

Re-exports stringify


stringifyWithFunctions

Re-exports stringifyWithFunctions


toSet

Re-exports toSet


underscore

Re-exports underscore


union

Re-exports union


varifyString

Re-exports varifyString


waitFor

Re-exports waitFor


zipArrays

Re-exports zipArrays

Functions

forceGarbageCollection

forceGarbageCollection(): void

Helper trying to call the carbage collection.

  • Wont raise an exception, if the gc is not available.
  • it isn't shure that the gc will be called.

Returns

void


registerGarbageCallback

registerGarbageCallback(item, callback): void

Helper to register a callback which will be called, if the item is getting remove by the gc.

Parameters

Name Type Description
item any The item to be collected by the gc.
callback (...args: any[]) => any The callback to call.

Returns

void