nhb-toolbox 1.2.3 → 1.2.9

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.
@@ -61,4 +61,4 @@ export declare function sortAnArray<T extends InputObject>(array: T[], options:
61
61
  * @returns The filtered array of objects.
62
62
  */
63
63
  export declare const filterArrayOfObjects: <T extends Record<string, unknown>>(array: T[], conditions: { [K in keyof T]?: (value: T[K]) => boolean; }) => T[];
64
- //# sourceMappingURL=index.d.ts.map
64
+ //# sourceMappingURL=basics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../src/array/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,SAAS,CAAC;AAEjB;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAAC,EAO5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC9B,CAAC,SAAS,WAAW,EACrB,EAAE,SAAS,MAAM,YACjB,EAAE,SAAS,MAAM,kBAEX,CAAC,EAAE,UACD,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,KAC9B,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,GAAE,EAe5B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,EAAE,CAAC;AAEhF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAChD,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,CAAC,EAAE,CAAC;AAiFP;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,SAC9D,CAAC,EAAE,cACE,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,GAAE,KACvD,CAAC,EAgBH,CAAC"}
@@ -22,4 +22,4 @@ export declare function getColorForInitial(input: ColorInput, opacity?: OpacityV
22
22
  * @returns A hex color for a string/number, or an array of hex colors for each element of the provided array.
23
23
  */
24
24
  export declare function getColorForInitial(input: ColorInputArray, opacity?: OpacityValue): string[];
25
- //# sourceMappingURL=index.d.ts.map
25
+ //# sourceMappingURL=initials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/colors/initials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGzE;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,UAAU,EACjB,OAAO,CAAC,EAAE,YAAY,GACpB,MAAM,CAAC;AAEV;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,YAAY,GACpB,MAAM,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { capitalizeString, truncateString, generateRandomID, trimString, } from './string';
2
- export { getRandomNumber, convertToDecimal } from './number';
3
- export { getColorForInitial } from './colors';
1
+ export { capitalizeString, generateRandomID, trimString, truncateString, } from './string/basics';
2
+ export { convertToDecimal, getRandomNumber } from './number/basics';
3
+ export { numberToWords } from './number/convert';
4
+ export { getColorForInitial } from './colors/initials';
4
5
  export { generateRandomColor } from './colors/random';
5
6
  export { convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertRgbToHex, convertRgbToHsl, } from './colors/convert';
6
- export { flattenArray, createOptionsArray, sortAnArray, filterArrayOfObjects, } from './array';
7
- export { generateQueryParams, cloneObject, isDeepEqual, mergeObjects, flattenObject, mergeAndFlattenObjects, isEmptyObject, countObjectFields, } from './object';
7
+ export { createOptionsArray, filterArrayOfObjects, flattenArray, sortAnArray, } from './array/basics';
8
+ export { cloneObject, countObjectFields, flattenObject, generateQueryParams, isDeepEqual, isEmptyObject, mergeAndFlattenObjects, mergeObjects, } from './object/basics';
8
9
  export { sanitizeData } from './object/sanitize';
9
10
  export { convertObjectValues } from './object/convert';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,UAAU,GACV,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EACN,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,oBAAoB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACN,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,iBAAiB,GACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,cAAc,GACd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EACN,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACN,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACX,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,YAAY,GACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,40 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertObjectValues = exports.sanitizeData = exports.countObjectFields = exports.isEmptyObject = exports.mergeAndFlattenObjects = exports.flattenObject = exports.mergeObjects = exports.isDeepEqual = exports.cloneObject = exports.generateQueryParams = exports.filterArrayOfObjects = exports.sortAnArray = exports.createOptionsArray = exports.flattenArray = exports.convertRgbToHsl = exports.convertRgbToHex = exports.convertHslToRgb = exports.convertHslToHex = exports.convertHexToRgb = exports.convertHexToHsl = exports.generateRandomColor = exports.getColorForInitial = exports.convertToDecimal = exports.getRandomNumber = exports.trimString = exports.generateRandomID = exports.truncateString = exports.capitalizeString = void 0;
4
- var string_1 = require("./string");
5
- Object.defineProperty(exports, "capitalizeString", { enumerable: true, get: function () { return string_1.capitalizeString; } });
6
- Object.defineProperty(exports, "truncateString", { enumerable: true, get: function () { return string_1.truncateString; } });
7
- Object.defineProperty(exports, "generateRandomID", { enumerable: true, get: function () { return string_1.generateRandomID; } });
8
- Object.defineProperty(exports, "trimString", { enumerable: true, get: function () { return string_1.trimString; } });
9
- var number_1 = require("./number");
10
- Object.defineProperty(exports, "getRandomNumber", { enumerable: true, get: function () { return number_1.getRandomNumber; } });
11
- Object.defineProperty(exports, "convertToDecimal", { enumerable: true, get: function () { return number_1.convertToDecimal; } });
12
- var colors_1 = require("./colors");
13
- Object.defineProperty(exports, "getColorForInitial", { enumerable: true, get: function () { return colors_1.getColorForInitial; } });
3
+ exports.convertObjectValues = exports.sanitizeData = exports.mergeObjects = exports.mergeAndFlattenObjects = exports.isEmptyObject = exports.isDeepEqual = exports.generateQueryParams = exports.flattenObject = exports.countObjectFields = exports.cloneObject = exports.sortAnArray = exports.flattenArray = exports.filterArrayOfObjects = exports.createOptionsArray = exports.convertRgbToHsl = exports.convertRgbToHex = exports.convertHslToRgb = exports.convertHslToHex = exports.convertHexToRgb = exports.convertHexToHsl = exports.generateRandomColor = exports.getColorForInitial = exports.numberToWords = exports.getRandomNumber = exports.convertToDecimal = exports.truncateString = exports.trimString = exports.generateRandomID = exports.capitalizeString = void 0;
4
+ var basics_1 = require("./string/basics");
5
+ Object.defineProperty(exports, "capitalizeString", { enumerable: true, get: function () { return basics_1.capitalizeString; } });
6
+ Object.defineProperty(exports, "generateRandomID", { enumerable: true, get: function () { return basics_1.generateRandomID; } });
7
+ Object.defineProperty(exports, "trimString", { enumerable: true, get: function () { return basics_1.trimString; } });
8
+ Object.defineProperty(exports, "truncateString", { enumerable: true, get: function () { return basics_1.truncateString; } });
9
+ var basics_2 = require("./number/basics");
10
+ Object.defineProperty(exports, "convertToDecimal", { enumerable: true, get: function () { return basics_2.convertToDecimal; } });
11
+ Object.defineProperty(exports, "getRandomNumber", { enumerable: true, get: function () { return basics_2.getRandomNumber; } });
12
+ var convert_1 = require("./number/convert");
13
+ Object.defineProperty(exports, "numberToWords", { enumerable: true, get: function () { return convert_1.numberToWords; } });
14
+ var initials_1 = require("./colors/initials");
15
+ Object.defineProperty(exports, "getColorForInitial", { enumerable: true, get: function () { return initials_1.getColorForInitial; } });
14
16
  var random_1 = require("./colors/random");
15
17
  Object.defineProperty(exports, "generateRandomColor", { enumerable: true, get: function () { return random_1.generateRandomColor; } });
16
- var convert_1 = require("./colors/convert");
17
- Object.defineProperty(exports, "convertHexToHsl", { enumerable: true, get: function () { return convert_1.convertHexToHsl; } });
18
- Object.defineProperty(exports, "convertHexToRgb", { enumerable: true, get: function () { return convert_1.convertHexToRgb; } });
19
- Object.defineProperty(exports, "convertHslToHex", { enumerable: true, get: function () { return convert_1.convertHslToHex; } });
20
- Object.defineProperty(exports, "convertHslToRgb", { enumerable: true, get: function () { return convert_1.convertHslToRgb; } });
21
- Object.defineProperty(exports, "convertRgbToHex", { enumerable: true, get: function () { return convert_1.convertRgbToHex; } });
22
- Object.defineProperty(exports, "convertRgbToHsl", { enumerable: true, get: function () { return convert_1.convertRgbToHsl; } });
23
- var array_1 = require("./array");
24
- Object.defineProperty(exports, "flattenArray", { enumerable: true, get: function () { return array_1.flattenArray; } });
25
- Object.defineProperty(exports, "createOptionsArray", { enumerable: true, get: function () { return array_1.createOptionsArray; } });
26
- Object.defineProperty(exports, "sortAnArray", { enumerable: true, get: function () { return array_1.sortAnArray; } });
27
- Object.defineProperty(exports, "filterArrayOfObjects", { enumerable: true, get: function () { return array_1.filterArrayOfObjects; } });
28
- var object_1 = require("./object");
29
- Object.defineProperty(exports, "generateQueryParams", { enumerable: true, get: function () { return object_1.generateQueryParams; } });
30
- Object.defineProperty(exports, "cloneObject", { enumerable: true, get: function () { return object_1.cloneObject; } });
31
- Object.defineProperty(exports, "isDeepEqual", { enumerable: true, get: function () { return object_1.isDeepEqual; } });
32
- Object.defineProperty(exports, "mergeObjects", { enumerable: true, get: function () { return object_1.mergeObjects; } });
33
- Object.defineProperty(exports, "flattenObject", { enumerable: true, get: function () { return object_1.flattenObject; } });
34
- Object.defineProperty(exports, "mergeAndFlattenObjects", { enumerable: true, get: function () { return object_1.mergeAndFlattenObjects; } });
35
- Object.defineProperty(exports, "isEmptyObject", { enumerable: true, get: function () { return object_1.isEmptyObject; } });
36
- Object.defineProperty(exports, "countObjectFields", { enumerable: true, get: function () { return object_1.countObjectFields; } });
18
+ var convert_2 = require("./colors/convert");
19
+ Object.defineProperty(exports, "convertHexToHsl", { enumerable: true, get: function () { return convert_2.convertHexToHsl; } });
20
+ Object.defineProperty(exports, "convertHexToRgb", { enumerable: true, get: function () { return convert_2.convertHexToRgb; } });
21
+ Object.defineProperty(exports, "convertHslToHex", { enumerable: true, get: function () { return convert_2.convertHslToHex; } });
22
+ Object.defineProperty(exports, "convertHslToRgb", { enumerable: true, get: function () { return convert_2.convertHslToRgb; } });
23
+ Object.defineProperty(exports, "convertRgbToHex", { enumerable: true, get: function () { return convert_2.convertRgbToHex; } });
24
+ Object.defineProperty(exports, "convertRgbToHsl", { enumerable: true, get: function () { return convert_2.convertRgbToHsl; } });
25
+ var basics_3 = require("./array/basics");
26
+ Object.defineProperty(exports, "createOptionsArray", { enumerable: true, get: function () { return basics_3.createOptionsArray; } });
27
+ Object.defineProperty(exports, "filterArrayOfObjects", { enumerable: true, get: function () { return basics_3.filterArrayOfObjects; } });
28
+ Object.defineProperty(exports, "flattenArray", { enumerable: true, get: function () { return basics_3.flattenArray; } });
29
+ Object.defineProperty(exports, "sortAnArray", { enumerable: true, get: function () { return basics_3.sortAnArray; } });
30
+ var basics_4 = require("./object/basics");
31
+ Object.defineProperty(exports, "cloneObject", { enumerable: true, get: function () { return basics_4.cloneObject; } });
32
+ Object.defineProperty(exports, "countObjectFields", { enumerable: true, get: function () { return basics_4.countObjectFields; } });
33
+ Object.defineProperty(exports, "flattenObject", { enumerable: true, get: function () { return basics_4.flattenObject; } });
34
+ Object.defineProperty(exports, "generateQueryParams", { enumerable: true, get: function () { return basics_4.generateQueryParams; } });
35
+ Object.defineProperty(exports, "isDeepEqual", { enumerable: true, get: function () { return basics_4.isDeepEqual; } });
36
+ Object.defineProperty(exports, "isEmptyObject", { enumerable: true, get: function () { return basics_4.isEmptyObject; } });
37
+ Object.defineProperty(exports, "mergeAndFlattenObjects", { enumerable: true, get: function () { return basics_4.mergeAndFlattenObjects; } });
38
+ Object.defineProperty(exports, "mergeObjects", { enumerable: true, get: function () { return basics_4.mergeObjects; } });
37
39
  var sanitize_1 = require("./object/sanitize");
38
40
  Object.defineProperty(exports, "sanitizeData", { enumerable: true, get: function () { return sanitize_1.sanitizeData; } });
39
- var convert_2 = require("./object/convert");
40
- Object.defineProperty(exports, "convertObjectValues", { enumerable: true, get: function () { return convert_2.convertObjectValues; } });
41
+ var convert_3 = require("./object/convert");
42
+ Object.defineProperty(exports, "convertObjectValues", { enumerable: true, get: function () { return convert_3.convertObjectValues; } });
@@ -16,4 +16,4 @@ export declare const getRandomNumber: (options?: RandomNumberOptions) => number;
16
16
  * @returns Converted number (as a `number`) or string (if `isString` is `true`).
17
17
  */
18
18
  export declare const convertToDecimal: (num: number, options?: DecimalOptions) => number | string;
19
- //# sourceMappingURL=index.d.ts.map
19
+ //# sourceMappingURL=basics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../src/number/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,aAAc,mBAAmB,KAAG,MA+C/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,QACvB,MAAM,YACD,cAAc,KACtB,MAAM,GAAG,MAQX,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ones: readonly ["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
2
+ export declare const teens: readonly ["", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"];
3
+ export declare const tens: readonly ["", "ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"];
4
+ export declare const thousands: readonly ["", "thousand", "million", "billion", "trillion", "quadrillion", "quintillion", "sextillion", "septillion", "octillion", "nonillion", "decillion"];
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/number/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,uFAWP,CAAC;AAEX,eAAO,MAAM,KAAK,sHAWR,CAAC;AAEX,eAAO,MAAM,IAAI,oGAWP,CAAC;AAEX,eAAO,MAAM,SAAS,8JAaZ,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.thousands = exports.tens = exports.teens = exports.ones = void 0;
4
+ exports.ones = [
5
+ '',
6
+ 'one',
7
+ 'two',
8
+ 'three',
9
+ 'four',
10
+ 'five',
11
+ 'six',
12
+ 'seven',
13
+ 'eight',
14
+ 'nine',
15
+ ];
16
+ exports.teens = [
17
+ '',
18
+ 'eleven',
19
+ 'twelve',
20
+ 'thirteen',
21
+ 'fourteen',
22
+ 'fifteen',
23
+ 'sixteen',
24
+ 'seventeen',
25
+ 'eighteen',
26
+ 'nineteen',
27
+ ];
28
+ exports.tens = [
29
+ '',
30
+ 'ten',
31
+ 'twenty',
32
+ 'thirty',
33
+ 'forty',
34
+ 'fifty',
35
+ 'sixty',
36
+ 'seventy',
37
+ 'eighty',
38
+ 'ninety',
39
+ ];
40
+ exports.thousands = [
41
+ '',
42
+ 'thousand',
43
+ 'million',
44
+ 'billion',
45
+ 'trillion',
46
+ 'quadrillion',
47
+ 'quintillion',
48
+ 'sextillion',
49
+ 'septillion',
50
+ 'octillion',
51
+ 'nonillion',
52
+ 'decillion',
53
+ ];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * * Converts a number to words
3
+ * @param number - The number to convert into words.
4
+ * @returns The number converted in words.
5
+ */
6
+ export declare function numberToWords(number: number): string;
7
+ //# sourceMappingURL=convert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../src/number/convert.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAsDpD"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.numberToWords = numberToWords;
4
+ const constants_1 = require("./constants");
5
+ /**
6
+ * * Converts a number to words
7
+ * @param number - The number to convert into words.
8
+ * @returns The number converted in words.
9
+ */
10
+ function numberToWords(number) {
11
+ const isNegative = number < 0;
12
+ if (number === 0)
13
+ return 'zero';
14
+ number = Math.abs(number);
15
+ /**
16
+ * - Converts a number less than 1000 to words.
17
+ * @param num - The number to convert (less than 1000).
18
+ * @param isLast - Whether this is the last group (thousands, millions, etc.).
19
+ * @returns Numbers less than 1000 in words.
20
+ */
21
+ function _convertLessThanThousand(num, isLast) {
22
+ if (num < 10)
23
+ return constants_1.ones[num];
24
+ if (num < 20)
25
+ return constants_1.teens[num - 10];
26
+ let result = constants_1.tens[Math.floor(num / 10)];
27
+ const remainder = num % 10;
28
+ if (remainder > 0)
29
+ result += `-${constants_1.ones[remainder]}`;
30
+ if (num >= 100) {
31
+ const hundredsPart = `${constants_1.ones[Math.floor(num / 100)]} hundred`;
32
+ return num % 100 === 0 ?
33
+ hundredsPart
34
+ : `${hundredsPart} ${isLast ? 'and' : ''} ${_convertLessThanThousand(num % 100, false)}`;
35
+ }
36
+ return result;
37
+ }
38
+ let i = 0;
39
+ let result = '';
40
+ while (number > 0) {
41
+ if (number % 1000 !== 0) {
42
+ const isLastGroup = i === 0 && number % 100 < 100;
43
+ const prefix = _convertLessThanThousand(number % 1000, isLastGroup);
44
+ result = `${prefix} ${constants_1.thousands[i]} ${result}`;
45
+ }
46
+ number = Math.floor(number / 1000);
47
+ i++;
48
+ }
49
+ const finalResult = result.trim().replace(/\s+/g, ' ');
50
+ return isNegative ? `minus ${finalResult}` : finalResult;
51
+ }
@@ -1,16 +1,17 @@
1
- import type { GenericObject } from './types';
1
+ import type { GenericObject, QueryObject } from './types';
2
2
  /**
3
3
  * * Utility to generate query parameters from an object.
4
4
  *
5
- * @template T - A generic type extending `Record<string, string | number | string[] | number[]>`.
5
+ * @template T - A generic type extending `Record<string, string | number | (string | number | null | undefined)[]>` (`QueryObject`).
6
6
  * @param params - Object containing query parameters.
7
7
  * @returns A query string as a URL-encoded string, e.g., `?key1=value1&key2=value2`.
8
8
  *
9
9
  * @example
10
10
  * generateQueryParams({ key1: 'value1', key2: 42 }); // "?key1=value1&key2=42"
11
11
  * generateQueryParams({ key1: ['value1', 'value2'], key2: 42 }); // "?key1=value1&key1=value2&key2=42"
12
+ * generateQueryParams({ key1: '', key2: null }); // ""
12
13
  */
13
- export declare const generateQueryParams: <T extends Record<string, string | number | string[] | number[]>>(params?: T) => string;
14
+ export declare const generateQueryParams: <T extends QueryObject>(params?: T) => string;
14
15
  /**
15
16
  * * Deep clone an object.
16
17
  *
@@ -63,4 +64,4 @@ export declare const flattenObject: <T extends GenericObject>(object: T) => Gene
63
64
  * @returns Whether the values are deeply equal.
64
65
  */
65
66
  export declare const isDeepEqual: <T>(a: T, b: T) => boolean;
66
- //# sourceMappingURL=index.d.ts.map
67
+ //# sourceMappingURL=basics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../src/object/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,WAAW,WAChD,CAAC,KACP,MA4BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,CAE7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,OAE/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,MAEnE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,cAAc,CAAC,EAAE,KAAG,CAuCvE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,aAAa,cACjD,CAAC,EAAE,KACb,aAyBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,UAC5C,CAAC,KACP,aA6BF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAG,OA6B3C,CAAC"}
@@ -4,19 +4,26 @@ exports.isDeepEqual = exports.flattenObject = exports.mergeAndFlattenObjects = e
4
4
  /**
5
5
  * * Utility to generate query parameters from an object.
6
6
  *
7
- * @template T - A generic type extending `Record<string, string | number | string[] | number[]>`.
7
+ * @template T - A generic type extending `Record<string, string | number | (string | number | null | undefined)[]>` (`QueryObject`).
8
8
  * @param params - Object containing query parameters.
9
9
  * @returns A query string as a URL-encoded string, e.g., `?key1=value1&key2=value2`.
10
10
  *
11
11
  * @example
12
12
  * generateQueryParams({ key1: 'value1', key2: 42 }); // "?key1=value1&key2=42"
13
13
  * generateQueryParams({ key1: ['value1', 'value2'], key2: 42 }); // "?key1=value1&key1=value2&key2=42"
14
+ * generateQueryParams({ key1: '', key2: null }); // ""
14
15
  */
15
16
  const generateQueryParams = (params = {}) => {
16
17
  const queryParams = Object.entries(params)
17
- .filter(([_, value]) => value !== undefined && value !== null)
18
+ .filter(([_, value]) => value !== undefined &&
19
+ value !== null &&
20
+ !(typeof value === 'string' && value.trim() === ''))
18
21
  .flatMap(([key, value]) => Array.isArray(value) ?
19
- value.map((v) => `${encodeURIComponent(key)}=${encodeURIComponent(String(v))}`)
22
+ value
23
+ .filter((v) => v !== undefined &&
24
+ v !== null &&
25
+ !(typeof v === 'string' && v.trim() === ''))
26
+ .map((v) => `${encodeURIComponent(key)}=${encodeURIComponent(String(v))}`)
20
27
  : `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`)
21
28
  .join('&');
22
29
  return queryParams ? `?${queryParams}` : '';
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sanitizeData = sanitizeData;
4
- const index_1 = require("./index");
5
- const string_1 = require("../string");
4
+ const basics_1 = require("../string/basics");
5
+ const basics_2 = require("./basics");
6
6
  /**
7
7
  * * Sanitizes a string, array of strings, an object or array of objects by ignoring specified keys and trimming string values.
8
8
  * * Also excludes nullish values (null, undefined) if specified. Always ignores empty nested object(s).
@@ -34,7 +34,7 @@ function sanitizeData(input, options) {
34
34
  }
35
35
  // Trim string values if enabled
36
36
  if (typeof value === 'string' && trimStrings) {
37
- acc[key] = (0, string_1.trimString)(value);
37
+ acc[key] = (0, basics_1.trimString)(value);
38
38
  }
39
39
  else if (value &&
40
40
  typeof value === 'object' &&
@@ -42,7 +42,7 @@ function sanitizeData(input, options) {
42
42
  // Recursively process nested objects
43
43
  const processedValue = _processObject(value, fullKeyPath);
44
44
  // Only add the property if it's not an empty object
45
- if (!(0, index_1.isEmptyObject)(processedValue)) {
45
+ if (!(0, basics_2.isEmptyObject)(processedValue)) {
46
46
  acc[key] = processedValue;
47
47
  }
48
48
  }
@@ -54,18 +54,18 @@ function sanitizeData(input, options) {
54
54
  }, {});
55
55
  // Process strings
56
56
  if (typeof input === 'string') {
57
- return (0, string_1.trimString)(input);
57
+ return (0, basics_1.trimString)(input);
58
58
  }
59
59
  // Process array of strings and objects
60
60
  if (Array.isArray(input)) {
61
61
  // Process array of strings
62
62
  if (typeof input[0] === 'string') {
63
- return (0, string_1.trimString)(input);
63
+ return (0, basics_1.trimString)(input);
64
64
  }
65
65
  // Process array of objects
66
66
  return input
67
67
  .map((obj) => _processObject(obj))
68
- .filter((obj) => !(0, index_1.isEmptyObject)(obj));
68
+ .filter((obj) => !(0, basics_2.isEmptyObject)(obj));
69
69
  }
70
70
  // Process object
71
71
  if (typeof input === 'object' && input !== null) {
@@ -1,5 +1,7 @@
1
1
  /** - Generic object type */
2
2
  export type GenericObject = Record<string, unknown>;
3
+ /** - Query object type `Record<string, string | number | string[] | number[]` */
4
+ export type QueryObject = Record<string, string | number | null | undefined | (string | number | null | undefined)[]>;
3
5
  /** - Dot-notation keys for nested objects */
4
6
  export type DotNotationKey<T> = T extends GenericObject ? {
5
7
  [K in keyof T & string]: T[K] extends GenericObject ? `${K}` | `${K}.${DotNotationKey<T[K]>}` : `${K}`;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/object/types.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,6CAA6C;AAC7C,MAAM,MAAM,cAAc,CAAC,CAAC,IAC3B,CAAC,SAAS,aAAa,GACtB;KACE,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa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M,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IACzD,CAAC,SAAS,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;AAElE,iDAAiD;AACjD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,GACzD,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1D,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GACrC,CAAC,CAAC,CAAC,CAAC;CACN,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,GACzD,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1D,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAC5B,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAC1B,MAAM;CACR,CAAC"}
@@ -37,4 +37,4 @@ export declare function trimString(input: string): string;
37
37
  * @returns Trimmed array of strings.
38
38
  */
39
39
  export declare function trimString(input: string[]): string[];
40
- //# sourceMappingURL=index.d.ts.map
40
+ //# sourceMappingURL=basics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basics.d.ts","sourceRoot":"","sources":["../../src/string/basics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,WACpB,MAAM,YACJ,iBAAiB,KACzB,MA0CF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,aAAa,MAAM,KAAG,MAYlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAc,eAAe,KAAG,MAkC5D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "1.2.3",
3
+ "version": "1.2.9",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions for everyday development needs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/array/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,SAAS,CAAC;AAEjB;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAAC,EAO5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC9B,CAAC,SAAS,WAAW,EACrB,EAAE,SAAS,MAAM,YACjB,EAAE,SAAS,MAAM,kBAEX,CAAC,EAAE,UACD,aAAa,CAAC,CAAC,EAA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Ae,EACtB,OAAO,CAAC,EAAE,YAAY,GACpB,MAAM,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/number/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,aAAc,mBAAmB,KAAG,MA+C/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,QACvB,MAAM,YACD,cAAc,KACtB,MAAM,GAAG,MAQX,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/object/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAC/B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,WAEvD,CAAC,KACP,MAgBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,CAE7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,OAE/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,aAAa,OAAO,CAAC,KAAG,MAEnE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,aAAa,cAAc,CAAC,EAAE,KAAG,CAuCvE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,aAAa,cACjD,CAAC,EAAE,KACb,aAyBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,UAC5C,CAAC,KACP,aA6BF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAG,OA6B3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/string/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,WACpB,MAAM,YACJ,iBAAiB,KACzB,MA0CF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,aAAa,MAAM,KAAG,MAYlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAc,eAAe,KAAG,MAkC5D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC"}
File without changes
File without changes
File without changes
File without changes