base class for create mixin in
extra object that should extends to base class
Checking ENV in env variable must equal one of input value
checking value
true if ENV has input value
clean object mean remove undefined and null object
massy object
convert index of month/day to string
input key
input index
output option
string represent day/month of input index
convert day/month name into index, returns -1 if not found
input key
input name
specify type/lang for fast search
day/month index start with 0 (Sunday, January)
convert year from type to global year number
Thai year example:
Global year example
year string
year type
deepEquals object data with specify keys
base object
checking object with o1
only specify key to check, empty means check all. The keys can cover nested object by . (see on example)
true if two object is identical
flat input to single array with values
input array / multiple array
flat array without nested array
this will convert input to T object
input any type
default value if input is not object
always new object returned
this is similar function with util.format() this function modified from https://github.com/tmpfs/format-util/blob/master/format.js
format string
argument will replace to format string
formatted string
input object to query
object query statment (format as a.b.c)
if enable this, getObject will return full object instead of undefined
Check is currently env is in CI
true if currently run in CI mode
Check ENV must be either 'development' or 'develop' or 'dev' or 'd' or ''
true if currently is development phase
checking is input is object datatype (object mean typeof input will return object)
input of any type
Check ENV must be either 'production' or 'product' or 'prod' or 'prd' or 'p'
true if currently is production phase
Check ENV must be either 'staging' or 'stage' or 'stag' or 's'
true if currently is staging phase
Check ENV must be either 'testing' or 'tested' or 'test' or 't'
true if currently is testing phase
The reverse function of isEmpty
input on any data type
Add
input string
string limitation
character for fill if input is not long enough
string with exactly length size
Add
input string
character for fill if input is not long enough
string with exactly length size
Read environment with default value if value not exist
environment name
default value if environment is not exist
output
replace all {
format string
argument object
format with object replacement
same with {@link JSON.stringify()} this function copy from https://github.com/moll/json-stringify-safe
similar object you would pass to JSON.stringify
same with replacer in JSON.stringify
same with spaces in JSON.stringify
same with replacer in JSON.stringify but for cycle object
text represent input object
convert input datetime to timestamp number
input datetime
output type
timestamp in number
convert input to array size 1 if not, or return input if already be array type
input value
array
Cast input to number, This supported by list below
input data on any type
parseFloat or parseInt, applied only when input is string. (default is parseFloat())
Cast input to string. This supporting by listed below
input data on any type
remove null possibility and return as undefined instead
input as any type and undefined | null
input if input is exist; otherwise, return undefined. This function will never return null
Set environment and return old (for rollback if needed)
You can write undefined
to delete environment value
environment name
environment value
old value if exist
Generated using TypeDoc
apply mixins to input constructor to extends function
https://www.typescriptlang.org/docs/handbook/mixins.html