@yamato-daiwa/es-extensions 1.4.1 β 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,20 +49,20 @@ export { isUndefined, isNull } from "@yamato-daiwa/es-extensions";
|
|
|
49
49
|
|
|
50
50
|
The tool for the unknown at advance external data (from HTTP request/response, file, etc.) validation and processing.
|
|
51
51
|
|
|
52
|
-
* [π Quick example](Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#quick-example)
|
|
53
|
-
* [π Problem overview](Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#problem-overview)
|
|
54
|
-
* [π Theoretical minimum](Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#theoretical-minimum)
|
|
55
|
-
* [π Getting started](Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#getting-started)
|
|
52
|
+
* [π Quick example](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#quick-example)
|
|
53
|
+
* [π Problem overview](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#problem-overview)
|
|
54
|
+
* [π Theoretical minimum](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#theoretical-minimum)
|
|
55
|
+
* [π Getting started](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#getting-started)
|
|
56
56
|
|
|
57
57
|
#### Numbers
|
|
58
58
|
|
|
59
|
-
* [`formatNumberWith4KetaKanji`](Documentation/Numbers/formatNumberWith4KetaKanji/formatNumberWith4KetaKanji.md)
|
|
59
|
+
* [`formatNumberWith4KetaKanji`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Numbers/formatNumberWith4KetaKanji/formatNumberWith4KetaKanji.md)
|
|
60
60
|
Formats number with 4-digits Kanji `δΈ`, `ε`, `ε
`, `η³»` (CJK ideographic characters)
|
|
61
|
-
* [`isStringifiedNonNegativeIntegerOfRegularNotation`](Documentation/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation/isStringifiedNonNegativeIntegerOfRegularNotation.md)
|
|
61
|
+
* [`isStringifiedNonNegativeIntegerOfRegularNotation`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation/isStringifiedNonNegativeIntegerOfRegularNotation.md)
|
|
62
62
|
Checks is the value of string contains the number of non-scientific notation.
|
|
63
|
-
* [`separateEach3DigitsGroupWithComma`](Documentation/Numbers/separateEach3DigitsGroupWithComma/separateEach3DigitsGroupWithComma.md)
|
|
63
|
+
* [`separateEach3DigitsGroupWithComma`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Numbers/separateEach3DigitsGroupWithComma/separateEach3DigitsGroupWithComma.md)
|
|
64
64
|
Formats the number separating each 3 digits group with comma
|
|
65
|
-
* [`separateEach4DigitsGroupWithComma`](Documentation/Numbers/separateEach4DigitsGroupWithComma/separateEach4DigitsGroupWithComma.md)
|
|
65
|
+
* [`separateEach4DigitsGroupWithComma`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Numbers/separateEach4DigitsGroupWithComma/separateEach4DigitsGroupWithComma.md)
|
|
66
66
|
Formats the number separating each 4 digits group with comma
|
|
67
67
|
|
|
68
68
|
#### Strings
|
|
@@ -72,87 +72,87 @@ If some function works incorrectly with surrogate pairs, it means the bug; pleas
|
|
|
72
72
|
|
|
73
73
|
* `areStringifiedDigitsOnly` Checks is string value consists exclusively from the digits.
|
|
74
74
|
* `capitalizeFirstCharacter` Capitalizes first character of target string value.
|
|
75
|
-
* [`EmailAddress`](Documentation/Strings/EmailAddress.md)
|
|
75
|
+
* [`EmailAddress`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/EmailAddress.md)
|
|
76
76
|
Class working with email addresses. Currently, consists from validating function and regular expression of valid emails.
|
|
77
77
|
* `getLastCharacter` Returns the last character of target string value.
|
|
78
|
-
* [`getPositionsOfAllSubstringOccurrences`](Documentation/Strings/getPositionsOfAllSubstringOccurrences.md)
|
|
78
|
+
* [`getPositionsOfAllSubstringOccurrences`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/getPositionsOfAllSubstringOccurrences.md)
|
|
79
79
|
Returns the positions of each occurrence of specified substring.
|
|
80
80
|
* `removeAllSpecifiedCharacters` Removes specified characters from the string value.
|
|
81
|
-
* [`removeLastCharacter`](Documentation/Strings/removeLastCharacter.md) Removes last character.
|
|
81
|
+
* [`removeLastCharacter`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/removeLastCharacter.md) Removes last character.
|
|
82
82
|
* `removeNonDigitsCharacters` Removes all characters from the string excepts digits.
|
|
83
|
-
* [`removeNthCharacter`](Documentation/Strings/removeNthCharacter.md)
|
|
83
|
+
* [`removeNthCharacter`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/removeNthCharacter.md)
|
|
84
84
|
Removes the symbol in specified position from the string. Supports the surrogate pairs.
|
|
85
|
-
* [`replace2OrMoreSpacesTo1`](Documentation/Strings/replace2OrMoreSpacesTo1.md) replaces 2 or more spaces to 1.
|
|
86
|
-
* [`replaceBrHTML_TagToNewLineEscapeSequence`](Documentation/Strings/replaceBrHTML_TagToNewLineEscapeSequence.md)
|
|
85
|
+
* [`replace2OrMoreSpacesTo1`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/replace2OrMoreSpacesTo1.md) replaces 2 or more spaces to 1.
|
|
86
|
+
* [`replaceBrHTML_TagToNewLineEscapeSequence`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/replaceBrHTML_TagToNewLineEscapeSequence.md)
|
|
87
87
|
Replaces the "br" HTML tag to new line (line feed) escape sequence.
|
|
88
88
|
* `insertSubstring` Insets nullable substring with optional condition and transformations.
|
|
89
89
|
* `insertSubstringIf` Insets substring conditionally.
|
|
90
90
|
* `reverseString` Reverses the characters sequence in string value.
|
|
91
|
-
* [`splitString`](Documentation/Strings/splitString.md) Alternative of native `String.prototype.split()`
|
|
91
|
+
* [`splitString`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/splitString.md) Alternative of native `String.prototype.split()`
|
|
92
92
|
supporting surrogate pairs.
|
|
93
93
|
* `stringifyAndFormatArbitraryValue` Converts to readable string any type of data.
|
|
94
94
|
* `replaceDoubleBackslashesWithForwardSlashes` Replaces double backslashes with forward slashes.
|
|
95
|
-
* [`trimSpaces`](Documentation/Strings/trimSpaces/trimSpaces.md) Trim prepended and/or appended space characters; unlike native
|
|
95
|
+
* [`trimSpaces`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Strings/trimSpaces/trimSpaces.md) Trim prepended and/or appended space characters; unlike native
|
|
96
96
|
`String.prototype.trim` acts selectively on specified spaces kinds.
|
|
97
97
|
|
|
98
98
|
#### Arrays
|
|
99
99
|
|
|
100
|
-
* [`getArrayElementMatchingWithPredicateIfSuchElementExactlyOne`](Documentation/Arrays/getArrayElementMatchingWithPredicateIfSuchElementExactlyOne.md)
|
|
100
|
+
* [`getArrayElementMatchingWithPredicateIfSuchElementExactlyOne`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Arrays/getArrayElementMatchingWithPredicateIfSuchElementExactlyOne.md)
|
|
101
101
|
Returns the element of specified array matching with the predicate if such element is exactly one, otherwise error will
|
|
102
102
|
be thrown or `null` will be returned (depending on dedicated option's value).
|
|
103
103
|
* `getLastElementOfNonEmptyArray` Return the last element of array. If no such element, `UnexpectedEventError` will be thrown.
|
|
104
|
-
* [`getIndexesOfArrayElementsWhichSatisfiesToPredicate`](Documentation/Arrays/getIndexesOfArrayElementsWhichSatisfiesToPredicate.md)
|
|
104
|
+
* [`getIndexesOfArrayElementsWhichSatisfiesToPredicate`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Arrays/getIndexesOfArrayElementsWhichSatisfiesToPredicate.md)
|
|
105
105
|
Returns the array of indexes of elements of array which are satisfies to predicate function.
|
|
106
|
-
* [`getIndexOfArrayElementByPredicate`](Documentation/Arrays/getIndexOfArrayElementByPredicate.md)
|
|
106
|
+
* [`getIndexOfArrayElementByPredicate`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Arrays/getIndexOfArrayElementByPredicate.md)
|
|
107
107
|
Returns the index of array element matching with predicate of `null` if no such element.
|
|
108
|
-
* [`twoDimensionalizeArray`](Documentation/Arrays/twoDimensionalizeArray.md) Converts flat array to 2-dimensional array
|
|
108
|
+
* [`twoDimensionalizeArray`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Arrays/twoDimensionalizeArray.md) Converts flat array to 2-dimensional array
|
|
109
109
|
with nested arrays of fixed elements count.
|
|
110
110
|
|
|
111
111
|
#### Sets
|
|
112
112
|
|
|
113
|
-
* [`addMultipleElementsToSet`](Documentation/Sets/addMultipleElementsToSet/addMultipleElementsToSet.md)
|
|
113
|
+
* [`addMultipleElementsToSet`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Sets/addMultipleElementsToSet/addMultipleElementsToSet.md)
|
|
114
114
|
Adds multiple elements to set.
|
|
115
115
|
|
|
116
116
|
#### Maps
|
|
117
117
|
|
|
118
|
-
* [`addMultiplePairsToMap`](Documentation/Maps/addMultiplePairsToMap/addMultiplePairsToMap.md)
|
|
118
|
+
* [`addMultiplePairsToMap`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Maps/addMultiplePairsToMap/addMultiplePairsToMap.md)
|
|
119
119
|
Adds multiple elements to map.
|
|
120
|
-
* [`createMapBasedOnOtherMap`](Documentation/Maps/createMapBasedOnOtherMap/createMapBasedOnOtherMap.md)
|
|
120
|
+
* [`createMapBasedOnOtherMap`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Maps/createMapBasedOnOtherMap/createMapBasedOnOtherMap.md)
|
|
121
121
|
Creates map based on other map.
|
|
122
|
-
* [`filterMap`](Documentation/Maps/filterMap/filterMap.md)
|
|
122
|
+
* [`filterMap`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/Maps/filterMap/filterMap.md)
|
|
123
123
|
Filters map by specified predicate.
|
|
124
124
|
|
|
125
125
|
#### Date & Time
|
|
126
126
|
|
|
127
|
-
* [`TimePoint`](Documentation/DateTime/TimePoint.md)
|
|
127
|
+
* [`TimePoint`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/TimePoint.md)
|
|
128
128
|
The alternative to native `Date` allows to build the formatted date/time strings easily.
|
|
129
|
-
* [`getDaysCountInSpecificMonth`](Documentation/DateTime/getDaysCountInSpecificMonth.md)
|
|
129
|
+
* [`getDaysCountInSpecificMonth`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/getDaysCountInSpecificMonth.md)
|
|
130
130
|
Return days count in specified year and month.
|
|
131
|
-
* [`getMonthNameByNumber`](Documentation/DateTime/getMonthNameByNumber.md)
|
|
132
|
-
Converts the month number (from 0 or 1) to element of [MonthsNames](Documentation/ConstantsAndEnumerations/MonthsNames.md) enumeration.
|
|
133
|
-
* [`getMonthNumberByName`](Documentation/DateTime/getMonthNumberByName.md)
|
|
134
|
-
Converts the element of [MonthsNames](Documentation/ConstantsAndEnumerations/MonthsNames.md) enumeration to number of
|
|
131
|
+
* [`getMonthNameByNumber`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/getMonthNameByNumber.md)
|
|
132
|
+
Converts the month number (from 0 or 1) to element of [MonthsNames](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/ConstantsAndEnumerations/MonthsNames.md) enumeration.
|
|
133
|
+
* [`getMonthNumberByName`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/getMonthNumberByName.md)
|
|
134
|
+
Converts the element of [MonthsNames](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/ConstantsAndEnumerations/MonthsNames.md) enumeration to number of
|
|
135
135
|
month (from 0 or 1)
|
|
136
|
-
* [`millisecondsToSeconds`](Documentation/DateTime/millisecondsToSeconds.md)
|
|
136
|
+
* [`millisecondsToSeconds`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/millisecondsToSeconds.md)
|
|
137
137
|
Converts milliseconds amount to amount of seconds.
|
|
138
|
-
* [`secondsToMilliseconds`](Documentation/DateTime/secondsToMilliseconds.md)
|
|
138
|
+
* [`secondsToMilliseconds`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Documentation/DateTime/secondsToMilliseconds.md)
|
|
139
139
|
Converts seconds amount to amount of milliseconds.
|
|
140
140
|
|
|
141
141
|
#### Types
|
|
142
142
|
|
|
143
|
-
* [`ParsedJSON` and related](
|
|
143
|
+
* [`ParsedJSON` and related](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Types/ParsedJSON/ParsedJSON.md)
|
|
144
144
|
The native object including the Array case which could be the result of JSON parsing.
|
|
145
|
-
* [`InheritEnumerationKeys`](
|
|
145
|
+
* [`InheritEnumerationKeys`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Types/InheritEnumerationKeys.md)
|
|
146
146
|
Allows to create the object with same key as reference enumeration.
|
|
147
147
|
* `PartialBy` Makes specified properties of base type optional.
|
|
148
148
|
|
|
149
149
|
#### Type guards
|
|
150
150
|
|
|
151
|
-
* [Numbers](
|
|
152
|
-
* [Strings](
|
|
153
|
-
* [Objects](
|
|
154
|
-
* [Arrays](
|
|
155
|
-
* [Nullables](
|
|
151
|
+
* [Numbers](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/TypeGuards/Numbers/NumberTypeGuards.md)
|
|
152
|
+
* [Strings](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/TypeGuards/Strings/StringTypeGuards.md)
|
|
153
|
+
* [Objects](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/TypeGuards/Objects/ObjectTypeGuards.md)
|
|
154
|
+
* [Arrays](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/TypeGuards/Arrays/ArrayTypeGuards.md)
|
|
155
|
+
* [Nullables](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/TypeGuards/Others/OtherTypeGuards.md)
|
|
156
156
|
|
|
157
157
|
#### Default value subsituters
|
|
158
158
|
|
|
@@ -181,21 +181,21 @@ If some function works incorrectly with surrogate pairs, it means the bug; pleas
|
|
|
181
181
|
|
|
182
182
|
#### Constants and enumerations
|
|
183
183
|
|
|
184
|
-
* [DaysOfWeek](
|
|
185
|
-
* [HTTP_Methods](
|
|
186
|
-
* [HTTP_StatusCodes](
|
|
187
|
-
* [MonthsNames](
|
|
184
|
+
* [DaysOfWeek](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/ConstantsAndEnumerations/DaysOfWeek.md)
|
|
185
|
+
* [HTTP_Methods](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/ConstantsAndEnumerations/HTTP_Methods.md)
|
|
186
|
+
* [HTTP_StatusCodes](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/ConstantsAndEnumerations/HTTP_StatusCodes.md)
|
|
187
|
+
* [MonthsNames](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/ConstantsAndEnumerations/MonthsNames.md)
|
|
188
188
|
|
|
189
189
|
#### Pagination
|
|
190
190
|
|
|
191
|
-
* [`computeFirstItemNumberForSpecificPaginationPage`](
|
|
191
|
+
* [`computeFirstItemNumberForSpecificPaginationPage`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Pagination/computeFirstItemNumberForSpecificPaginationPage/computeFirstItemNumberForSpecificPaginationPage.md)
|
|
192
192
|
Computes the first item number for specified pagination page.
|
|
193
|
-
* [`computeLastItemNumberForSpecificPaginationPage`](
|
|
193
|
+
* [`computeLastItemNumberForSpecificPaginationPage`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Pagination/computeLastItemNumberForSpecificPaginationPage/computeLastItemNumberForSpecificPaginationPage.md)
|
|
194
194
|
Computes the last item number for specified pagination page.
|
|
195
195
|
|
|
196
196
|
#### Logging
|
|
197
197
|
|
|
198
|
-
* [`Logger` facade](
|
|
198
|
+
* [`Logger` facade](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/tree/master/CoreLibrary/Package/Logging/Logger/Logger.md)
|
|
199
199
|
Basic facade for providing of the high-quality logging with customizable output destinations, formatting and limitations.
|
|
200
200
|
* Pre-made errors
|
|
201
201
|
* `AlgorithmMismatchError` Recommended to throw in general cases when real behaviour of the program is not
|