softkave-js-utils
v0.4.4
Published
JavaScript & Typescript utility functions, types, and classes
Downloads
546
Maintainers
Readme
Softkave JS Utils
Overview
Collection of JavaScript and Typescript utilities.
Notes
- API is still unstable, so use with care.
- Only currently exports as an ES module, I currently do not need a commonjs export. Should you need one, you can open an issue, an I can look into it.
Install
For npm
npm install softkave-js-utils
For yarn
yarn add softkave-js-utils
Exports
Functions
array
error
function
id
logger
number
object
other
promise
string
testing
constants
Type Utilities
AnyObject
ConvertT1ToT2Deep
ConvertDateToStringDeep
AnyFn
AnyAsyncFn
EmptyObject
ClassConstructor
AbstractClassConstructor
PartialRecord
InferTypeFromArray
InvertRecord
DefaultTo
StringKeysOnly
OrArray
OrPromise
OmitFrom
IsUnion
UnionToTuple
IsStringEnum
Not
IsBoolean