umt-common
v3.2.2
Published
UMT Main Package is written in TypeScript and is a collection of useful functions for various tasks.
Maintainers
Readme
UMT Main Package
UMT Main Package is written in TypeScript and is a collection of useful functions for various tasks.
Install
npm install umt
# or
yarn add umt
# or
pnpm add umt
# or
bun add umtFunction List
Advance
Array
- arraysJoin
- binarySearch
- checkFlagAlignment
- chunk
- compact
- drop
- dualPivotQuickSort
- first
- generateNumberArray
- getArraysCommon
- getArraysDiff
- groupBy
- insertionSort
- mergeSort
- pop
- quickSort
- randomSelect
- range
- shuffle
- shuffle2DArray
- sum
- timSort
- ultraNumberSort
- uniqBy
- unique
- zip
- zipLongest
Async
- debounceAsync
- DebouncedAsyncFunction
- defer
- Deferred
- parallel
- pSettled
- retry
- RetryOptions
- SettledResult
- sleep
- throttleAsync
- ThrottledAsyncFunction
- timeout
- waitFor
- WaitForOptions
Color
Consts
- HttpClientErrorStatus
- HttpInformationalStatus
- HttpRedirectionStatus
- HttpServerErrorStatus
- HttpStatus
- HttpSuccessStatus
- OneDayMs
- OneHourMs
- OneMinuteMs
- OneMonthMs
- OneMonthMs28
- OneMonthMs29
- OneMonthMs31
- OneSecondMs
- OneWeekMs
- OneYearMs
- OneYearMs366
Crypto
DataStructure
Date
- addDuration
- birthday
- DateBoundaryUnit
- dateRange
- dayOfWeek
- diff
- DurationUnit
- endOf
- format
- formatRelative
- getDay
- getTimezoneOffsetString
- isBusinessDay
- isLeapYear
- isSameDay
- isWeekend
- newDateInt
- newDateString
- now
- startOf
- subDuration
Error
Function
- curry
- debounce
- DebouncedFunction
- DebounceOptions
- memoize
- MemoizedFunction
- MemoizeOptions
- once
- throttle
- ThrottledFunction
IP
- cidrToLong
- cidrToSubnetMask
- getIpClass
- getNetworkAddress
- ipToBinaryString
- ipToLong
- isInRange
- isPrivateIp
- longToIp
- subnetMaskToCidr
Iterator
Math
- addition
- average
- bitwise
- calculator
- calculatorCore
- calculatorInitialization
- clamp
- convertCurrency
- correlationCoefficient
- degToRad
- deviationValue
- division
- factorial
- factorize
- flexibleNumberConversion
- gcd
- getDecimalLength
- inRange
- lcm
- linearCongruentialGenerator
- literalExpression
- mathConverter
- mathSeparator
- max
- median
- min
- mode
- multiples
- multiplication
- nCr
- nHr
- nPr
- percentile
- primeFactorization
- quotient
- radToDeg
- random
- reduce
- repeatedTrial
- roundOf
- solveEquation
- standardDeviation
- subtract
- sumPrecise
- toBaseN
- toCelsius
- toKelvin
- uuidv7
- valueSwap
- xoshiro256
Number
Object
- deepClone
- flattenObject
- get
- getObjectsCommon
- getObjectsDiff
- has
- invert
- isEmpty
- isPlainObject
- keyBy
- mapKeys
- mapValues
- merge
- mergeDeep
- omit
- omitBy
- pathSegments
- pick
- pickBy
- pickDeep
- removePrototype
- removePrototypeDeep
- removePrototypeMap
- removePrototypeMapDeep
- set
- unflattenObject
Predicate
Random
Simple
String
- camelCase
- capitalize
- capitalizeWord
- dedent
- deleteSpaces
- escapeHtml
- formatString
- fromBase64
- fuzzySearch
- hasNoLetters
- kebabCase
- levenshteinDistance
- mask
- MaskOptions
- padEnd
- padStart
- pascalCase
- randomString
- randomStringInitialization
- reverseString
- slugify
- snakeCase
- stringSimilarity
- titleCase
- toBase64
- toHalfWidth
- trimCharacters
- trimEndCharacters
- trimStartCharacters
- truncate
- uncapitalize
- unescapeHtml
- wordCount
- words
Time
Tool
UA
Unit
URL
Validate
- _Types
- _Types2
- _ValidateType
- _ValidateType2
- array
- boolean
- double
- even
- intersection
- isArray
- isBrowser
- isBun
- isDeepEqual
- IsDeepEqualOptions
- isDictionaryObject
- isDouble
- isEqual
- isNode
- isNodeWebkit
- isNotEmpty
- isNumber
- isPerfectSquare
- isPrimeNumber
- isString
- isValueNaN
- length_
- maxLength
- maxValue
- minLength
- minValue
- number
- numberString
- object
- odd
- optional
- OptionalKeys
- parseEmail
- ParseEmailLevel
- ParseEmailOptions
- prime
- regexMatch
- SchemaToInterface
- string
- Types
- union
- uuid
- ValidateCoreReturnType
- validateEmail
- ValidateFunctionType
- ValidateReturnType
- ValidateType
