diginext-utils 1.2.4 → 2.0.1

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.
Files changed (81) hide show
  1. package/dist/Checker.js +7 -8
  2. package/dist/Checker.mjs +25 -0
  3. package/dist/EventDispatcher.js +20 -19
  4. package/dist/EventDispatcher.mjs +51 -0
  5. package/dist/FileUpload.js +24 -29
  6. package/dist/FileUpload.mjs +60 -0
  7. package/dist/Slug.js +286 -340
  8. package/dist/Slug.mjs +327 -0
  9. package/dist/Timer.js +8 -11
  10. package/dist/Timer.mjs +2 -0
  11. package/dist/Validation.js +11 -19
  12. package/dist/Validation.mjs +33 -0
  13. package/dist/array.js +100 -203
  14. package/dist/array.mjs +3 -0
  15. package/dist/backend/file/createDir.js +13 -13
  16. package/dist/backend/file/createDir.mjs +13 -0
  17. package/dist/backend/file/fileMove.js +14 -14
  18. package/dist/backend/file/fileMove.mjs +29 -0
  19. package/dist/backend/file/findFilesByExt.js +22 -22
  20. package/dist/backend/file/findFilesByExt.mjs +40 -0
  21. package/dist/chunk-5AL36RZR.mjs +47 -0
  22. package/dist/chunk-7IYY7BKN.mjs +136 -0
  23. package/dist/chunk-ACLBWYEO.mjs +85 -0
  24. package/dist/chunk-AHFJBIQJ.mjs +9 -0
  25. package/dist/chunk-AKU6F3WT.mjs +9 -0
  26. package/dist/chunk-FOWYH6LL.mjs +32 -0
  27. package/dist/chunk-FTE6FZSH.mjs +17 -0
  28. package/dist/chunk-JKYSZLBF.mjs +27 -0
  29. package/dist/chunk-LXQIKFED.mjs +13 -0
  30. package/dist/chunk-Q5R25OIS.mjs +185 -0
  31. package/dist/chunk-R2BH5I6O.mjs +9 -0
  32. package/dist/chunk-UKRVCU5M.mjs +166 -0
  33. package/dist/chunk-VFKAZAWF.mjs +40 -0
  34. package/dist/chunk-VZGV2BTL.mjs +27 -0
  35. package/dist/chunk-Y4ZTQWPA.mjs +68 -0
  36. package/dist/color.js +44 -61
  37. package/dist/color.mjs +62 -0
  38. package/dist/console/enableConsole.js +14 -11
  39. package/dist/console/enableConsole.mjs +2 -0
  40. package/dist/console/index.js +14 -11
  41. package/dist/console/index.mjs +2 -0
  42. package/dist/device/browser.js +29 -27
  43. package/dist/device/browser.mjs +2 -0
  44. package/dist/device/camera.js +65 -125
  45. package/dist/device/camera.mjs +3 -0
  46. package/dist/device.js +76 -181
  47. package/dist/device.mjs +2 -0
  48. package/dist/index.js +879 -135
  49. package/dist/index.mjs +14 -0
  50. package/dist/math/diffDate.js +8 -15
  51. package/dist/math/diffDate.mjs +10 -0
  52. package/dist/math/positiveNumber.js +24 -10
  53. package/dist/math/positiveNumber.mjs +16 -0
  54. package/dist/math.js +27 -217
  55. package/dist/math.mjs +2 -0
  56. package/dist/object.js +33 -36
  57. package/dist/object.mjs +2 -0
  58. package/dist/permission/requestCamera.js +14 -37
  59. package/dist/permission/requestCamera.mjs +2 -0
  60. package/dist/permission/requestDeviceOrientationControl.js +161 -20
  61. package/dist/permission/requestDeviceOrientationControl.mjs +3 -0
  62. package/dist/string/formatNumber.js +27 -18
  63. package/dist/string/formatNumber.mjs +10 -0
  64. package/dist/string/generatePassword.js +25 -23
  65. package/dist/string/generatePassword.mjs +16 -0
  66. package/dist/string/generateUUID.js +11 -17
  67. package/dist/string/generateUUID.mjs +14 -0
  68. package/dist/string/name/en.js +6 -14
  69. package/dist/string/name/en.mjs +17 -0
  70. package/dist/string/name/vi.js +29 -22
  71. package/dist/string/name/vi.mjs +20 -0
  72. package/dist/string/random.js +16 -30
  73. package/dist/string/random.mjs +2 -0
  74. package/dist/string/trimNull.js +14 -14
  75. package/dist/string/trimNull.mjs +14 -0
  76. package/dist/string/url.js +45 -74
  77. package/dist/string/url.mjs +3 -0
  78. package/dist/string.js +43 -394
  79. package/dist/string.mjs +3 -0
  80. package/package.json +23 -28
  81. package/dist/backend/zip/extractZip.js +0 -59
@@ -1,35 +1,176 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("core-js/modules/es.promise.js");
8
- var _device = require("../device");
9
- const requestDeviceOrientationControl = () => {
10
- if (typeof window == "undefined") return false;
3
+ // src/device.ts
4
+ var isAndroid = () => {
5
+ const deviceInfo2 = checkOS();
6
+ if (deviceInfo2)
7
+ return deviceInfo2.os.toLowerCase() == "android";
8
+ console.log("Can't check OS");
9
+ return null;
10
+ };
11
+ var deviceInfo;
12
+ var checkOS = () => {
13
+ if (typeof window == "undefined")
14
+ return {};
15
+ if (typeof deviceInfo == "undefined") {
16
+ var unknown = "-";
17
+ var screenSize = "";
18
+ if (screen.width) {
19
+ var width = screen.width ? screen.width : "";
20
+ var height = screen.height ? screen.height : "";
21
+ screenSize += "" + width + " x " + height;
22
+ }
23
+ var nVer = navigator.appVersion;
24
+ var nAgt = navigator.userAgent;
25
+ var browser = navigator.appName;
26
+ var version = "" + parseFloat(navigator.appVersion);
27
+ var majorVersion = parseInt(navigator.appVersion, 10);
28
+ var nameOffset, verOffset, ix;
29
+ if ((verOffset = nAgt.indexOf("Opera")) != -1) {
30
+ browser = "Opera";
31
+ version = nAgt.substring(verOffset + 6);
32
+ if ((verOffset = nAgt.indexOf("Version")) != -1) {
33
+ version = nAgt.substring(verOffset + 8);
34
+ }
35
+ }
36
+ if ((verOffset = nAgt.indexOf("OPR")) != -1) {
37
+ browser = "Opera";
38
+ version = nAgt.substring(verOffset + 4);
39
+ } else if ((verOffset = nAgt.indexOf("Edge")) != -1) {
40
+ browser = "Microsoft Edge";
41
+ version = nAgt.substring(verOffset + 5);
42
+ } else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
43
+ browser = "Microsoft Internet Explorer";
44
+ version = nAgt.substring(verOffset + 5);
45
+ } else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
46
+ browser = "Chrome";
47
+ version = nAgt.substring(verOffset + 7);
48
+ } else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
49
+ browser = "Safari";
50
+ version = nAgt.substring(verOffset + 7);
51
+ if ((verOffset = nAgt.indexOf("Version")) != -1) {
52
+ version = nAgt.substring(verOffset + 8);
53
+ }
54
+ } else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
55
+ browser = "Firefox";
56
+ version = nAgt.substring(verOffset + 8);
57
+ } else if (nAgt.indexOf("Trident/") != -1) {
58
+ browser = "Microsoft Internet Explorer";
59
+ version = nAgt.substring(nAgt.indexOf("rv:") + 3);
60
+ } else if ((nameOffset = nAgt.lastIndexOf(" ") + 1) < (verOffset = nAgt.lastIndexOf("/"))) {
61
+ browser = nAgt.substring(nameOffset, verOffset);
62
+ version = nAgt.substring(verOffset + 1);
63
+ if (browser.toLowerCase() == browser.toUpperCase()) {
64
+ browser = navigator.appName;
65
+ }
66
+ }
67
+ if ((ix = version.indexOf(";")) != -1)
68
+ version = version.substring(0, ix);
69
+ if ((ix = version.indexOf(" ")) != -1)
70
+ version = version.substring(0, ix);
71
+ if ((ix = version.indexOf(")")) != -1)
72
+ version = version.substring(0, ix);
73
+ majorVersion = parseInt("" + version, 10);
74
+ if (isNaN(majorVersion)) {
75
+ version = "" + parseFloat(navigator.appVersion);
76
+ majorVersion = parseInt(navigator.appVersion, 10);
77
+ }
78
+ var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer);
79
+ var cookieEnabled = navigator.cookieEnabled ? true : false;
80
+ if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
81
+ document.cookie = "testcookie";
82
+ cookieEnabled = document.cookie.indexOf("testcookie") != -1 ? true : false;
83
+ }
84
+ var os = unknown;
85
+ var clientStrings = [
86
+ { s: "Windows 10", r: /(Windows 10.0|Windows NT 10.0)/ },
87
+ { s: "Windows 8.1", r: /(Windows 8.1|Windows NT 6.3)/ },
88
+ { s: "Windows 8", r: /(Windows 8|Windows NT 6.2)/ },
89
+ { s: "Windows 7", r: /(Windows 7|Windows NT 6.1)/ },
90
+ { s: "Windows Vista", r: /Windows NT 6.0/ },
91
+ { s: "Windows Server 2003", r: /Windows NT 5.2/ },
92
+ { s: "Windows XP", r: /(Windows NT 5.1|Windows XP)/ },
93
+ { s: "Windows 2000", r: /(Windows NT 5.0|Windows 2000)/ },
94
+ { s: "Windows ME", r: /(Win 9x 4.90|Windows ME)/ },
95
+ { s: "Windows 98", r: /(Windows 98|Win98)/ },
96
+ { s: "Windows 95", r: /(Windows 95|Win95|Windows_95)/ },
97
+ { s: "Windows NT 4.0", r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/ },
98
+ { s: "Windows CE", r: /Windows CE/ },
99
+ { s: "Windows 3.11", r: /Win16/ },
100
+ { s: "Android", r: /Android/ },
101
+ { s: "Open BSD", r: /OpenBSD/ },
102
+ { s: "Sun OS", r: /SunOS/ },
103
+ { s: "Linux", r: /(Linux|X11)/ },
104
+ { s: "iOS", r: /(iPhone|iPad|iPod)/ },
105
+ { s: "Mac OS X", r: /Mac OS X/ },
106
+ { s: "Mac OS", r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/ },
107
+ { s: "QNX", r: /QNX/ },
108
+ { s: "UNIX", r: /UNIX/ },
109
+ { s: "BeOS", r: /BeOS/ },
110
+ { s: "OS/2", r: /OS\/2/ },
111
+ { s: "Search Bot", r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/ }
112
+ ];
113
+ for (var id in clientStrings) {
114
+ var cs = clientStrings[id];
115
+ if (cs.r.test(nAgt)) {
116
+ os = cs.s;
117
+ break;
118
+ }
119
+ }
120
+ var osVersion = unknown;
121
+ if (/Windows/.test(os)) {
122
+ osVersion = /Windows (.*)/.exec(os)[1];
123
+ os = "Windows";
124
+ }
125
+ switch (os) {
126
+ case "Mac OS X":
127
+ osVersion = /Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1];
128
+ break;
129
+ case "Android":
130
+ osVersion = /Android ([\.\_\d]+)/.exec(nAgt)[1];
131
+ break;
132
+ case "iOS":
133
+ const _osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer);
134
+ osVersion = _osVersion[1] + "." + _osVersion[2] + "." + (_osVersion[3] || 0);
135
+ break;
136
+ }
137
+ const _deviceInfo = {
138
+ screen: screenSize,
139
+ browser,
140
+ browserVersion: version,
141
+ browserMajorVersion: majorVersion,
142
+ mobile,
143
+ os,
144
+ osVersion,
145
+ cookies: cookieEnabled
146
+ };
147
+ deviceInfo = _deviceInfo;
148
+ }
149
+ return deviceInfo;
150
+ };
151
+
152
+ // src/permission/requestDeviceOrientationControl.ts
153
+ var requestDeviceOrientationControl = () => {
154
+ if (typeof window == "undefined")
155
+ return false;
11
156
  return new Promise((resolve, reject) => {
12
- if ((0, _device.isAndroid)()) resolve(true);
157
+ if (isAndroid())
158
+ resolve(true);
13
159
  if (typeof DeviceMotionEvent != "undefined" && DeviceMotionEvent.requestPermission) {
14
- // (optional) Do something before API request prompt.
15
- DeviceOrientationEvent.requestPermission().then(response => {
16
- // (optional) Do something after API prompt dismissed.
160
+ DeviceMotionEvent.requestPermission().then((response) => {
17
161
  if (response == "granted") {
18
162
  resolve(true);
19
- // resolve({ status: true })
20
163
  } else {
21
164
  resolve(false);
22
- // resolve({ status: false, reason: "DeviceMotionEvent is not support" })
23
165
  }
24
- }).catch(response => {
166
+ }).catch((response) => {
25
167
  resolve(false);
26
- // resolve({ status: false, reason: response })
27
168
  });
28
169
  } else {
29
170
  resolve(false);
30
- // resolve({ status: false, reason: "DeviceMotionEvent is not defined" })
31
171
  }
32
172
  });
33
173
  };
34
- var _default = requestDeviceOrientationControl;
35
- exports.default = _default;
174
+ var requestDeviceOrientationControl_default = requestDeviceOrientationControl;
175
+
176
+ module.exports = requestDeviceOrientationControl_default;
@@ -0,0 +1,3 @@
1
+ export { requestDeviceOrientationControl_default as default } from '../chunk-VZGV2BTL.mjs';
2
+ import '../chunk-UKRVCU5M.mjs';
3
+ import '../chunk-AKU6F3WT.mjs';
@@ -1,19 +1,28 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = formatNumber;
7
- require("core-js/modules/es.regexp.exec.js");
8
- require("core-js/modules/es.string.replace.js");
9
- require("core-js/modules/es.regexp.to-string.js");
10
- var _object = require("../object");
11
- /**
12
- *
13
- * @param {Number} num
14
- * @returns {string}
15
- */
16
- function formatNumber(num) {
17
- const numRound = Math.round(((0, _object.toInt)(num) + Number.EPSILON) * 100) / 100;
18
- return Number.isNaN(numRound) ? "0" : "" + numRound.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
19
- }
3
+ // src/object.ts
4
+ var isNull = (object) => {
5
+ if (typeof object == "undefined")
6
+ return true;
7
+ if (object == "")
8
+ return true;
9
+ if (Array.isArray(object))
10
+ return object.length == 0;
11
+ if (JSON.stringify(object) == "{}")
12
+ return true;
13
+ return object == null;
14
+ };
15
+ var toInt = (object) => {
16
+ if (isNull(object))
17
+ return 0;
18
+ object = object.toString();
19
+ return parseInt(object, 10);
20
+ };
21
+
22
+ // src/string/formatNumber.ts
23
+ function formatNumber(num, prefix = "$") {
24
+ const numRound = Math.round((toInt(num) + Number.EPSILON) * 100) / 100;
25
+ return Number.isNaN(numRound) ? "0" : "" + numRound.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, prefix + "1,");
26
+ }
27
+
28
+ module.exports = formatNumber;
@@ -0,0 +1,10 @@
1
+ import { toInt } from '../chunk-5AL36RZR.mjs';
2
+ import '../chunk-AKU6F3WT.mjs';
3
+
4
+ // src/string/formatNumber.ts
5
+ function formatNumber(num, prefix = "$") {
6
+ const numRound = Math.round((toInt(num) + Number.EPSILON) * 100) / 100;
7
+ return Number.isNaN(numRound) ? "0" : "" + numRound.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, prefix + "1,");
8
+ }
9
+
10
+ export { formatNumber as default };
@@ -1,25 +1,27 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = generatePassword;
7
- require("core-js/modules/es.regexp.exec.js");
8
- require("core-js/modules/es.string.replace.js");
9
- var _random = require("./random");
10
- /**
11
- * random password
12
- * - if hard = true -> random punctuation inside
13
- * @param {*} length
14
- * @param {Boolean} hard
15
- * @returns
16
- */
17
- function generatePassword() {
18
- let length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 6;
19
- let hard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
20
- if (!Number.isFinite(length)) length = 6;
21
- if (length <= 0) length = 6;
22
- let pass = (0, _random.randomStringByLength)(length, _random.textLowCase + _random.textLowCase.toUpperCase() + _random.numeric);
23
- if (hard) pass = pass.replace(pass[Math.floor(pass.length / 2)], (0, _random.randomStringByLength)(1, _random.punctuation));
3
+ // src/string/random.ts
4
+ var textLowCase = "abcdefghijklmnopqrstuvwxyz";
5
+ var numeric = "0123456789";
6
+ var punctuation = "!@#$%^&*()_+~|}{[];?><,./-=";
7
+ var randomStringByLength = (length, str = textLowCase) => {
8
+ let result = "";
9
+ for (let i = 0; i < length; i++) {
10
+ result += str.charAt(Math.floor(Math.random() * str.length));
11
+ }
12
+ return result;
13
+ };
14
+
15
+ // src/string/generatePassword.ts
16
+ function generatePassword(length = 6, hard = true) {
17
+ if (!Number.isFinite(length))
18
+ length = 6;
19
+ if (length <= 0)
20
+ length = 6;
21
+ let pass = randomStringByLength(length, textLowCase + textLowCase.toUpperCase() + numeric);
22
+ if (hard)
23
+ pass = pass.replace(pass[Math.floor(pass.length / 2)], randomStringByLength(1, punctuation));
24
24
  return pass;
25
- }
25
+ }
26
+
27
+ module.exports = generatePassword;
@@ -0,0 +1,16 @@
1
+ import { randomStringByLength, textLowCase, numeric, punctuation } from '../chunk-FTE6FZSH.mjs';
2
+ import '../chunk-AKU6F3WT.mjs';
3
+
4
+ // src/string/generatePassword.ts
5
+ function generatePassword(length = 6, hard = true) {
6
+ if (!Number.isFinite(length))
7
+ length = 6;
8
+ if (length <= 0)
9
+ length = 6;
10
+ let pass = randomStringByLength(length, textLowCase + textLowCase.toUpperCase() + numeric);
11
+ if (hard)
12
+ pass = pass.replace(pass[Math.floor(pass.length / 2)], randomStringByLength(1, punctuation));
13
+ return pass;
14
+ }
15
+
16
+ export { generatePassword as default };
@@ -1,20 +1,14 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = generateUUID;
7
- //prettier-ignore
8
- const _lut = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '0a', '0b', '0c', '0d', '0e', '0f', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '1a', '1b', '1c', '1d', '1e', '1f', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '2a', '2b', '2c', '2d', '2e', '2f', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '3a', '3b', '3c', '3d', '3e', '3f', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '4a', '4b', '4c', '4d', '4e', '4f', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '5a', '5b', '5c', '5d', '5e', '5f', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '6a', '6b', '6c', '6d', '6e', '6f', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '7a', '7b', '7c', '7d', '7e', '7f', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '8a', '8b', '8c', '8d', '8e', '8f', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '9a', '9b', '9c', '9d', '9e', '9f', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'aa', 'ab', 'ac', 'ad', 'ae', 'af', 'b0', 'b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'ba', 'bb', 'bc', 'bd', 'be', 'bf', 'c0', 'c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'ca', 'cb', 'cc', 'cd', 'ce', 'cf', 'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8', 'd9', 'da', 'db', 'dc', 'dd', 'de', 'df', 'e0', 'e1', 'e2', 'e3', 'e4', 'e5', 'e6', 'e7', 'e8', 'e9', 'ea', 'eb', 'ec', 'ed', 'ee', 'ef', 'f0', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'fa', 'fb', 'fc', 'fd', 'fe', 'ff'];
3
+ // src/string/generateUUID.ts
4
+ var _lut = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
9
5
  function generateUUID() {
10
- // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
11
-
12
- const d0 = Math.random() * 0xffffffff | 0;
13
- const d1 = Math.random() * 0xffffffff | 0;
14
- const d2 = Math.random() * 0xffffffff | 0;
15
- const d3 = Math.random() * 0xffffffff | 0;
16
- const uuid = _lut[d0 & 0xff] + _lut[d0 >> 8 & 0xff] + _lut[d0 >> 16 & 0xff] + _lut[d0 >> 24 & 0xff] + "-" + _lut[d1 & 0xff] + _lut[d1 >> 8 & 0xff] + "-" + _lut[d1 >> 16 & 0x0f | 0x40] + _lut[d1 >> 24 & 0xff] + "-" + _lut[d2 & 0x3f | 0x80] + _lut[d2 >> 8 & 0xff] + "-" + _lut[d2 >> 16 & 0xff] + _lut[d2 >> 24 & 0xff] + _lut[d3 & 0xff] + _lut[d3 >> 8 & 0xff] + _lut[d3 >> 16 & 0xff] + _lut[d3 >> 24 & 0xff];
17
-
18
- // .toLowerCase() here flattens concatenated strings to save heap memory space.
6
+ const d0 = Math.random() * 4294967295 | 0;
7
+ const d1 = Math.random() * 4294967295 | 0;
8
+ const d2 = Math.random() * 4294967295 | 0;
9
+ const d3 = Math.random() * 4294967295 | 0;
10
+ const uuid = _lut[d0 & 255] + _lut[d0 >> 8 & 255] + _lut[d0 >> 16 & 255] + _lut[d0 >> 24 & 255] + "-" + _lut[d1 & 255] + _lut[d1 >> 8 & 255] + "-" + _lut[d1 >> 16 & 15 | 64] + _lut[d1 >> 24 & 255] + "-" + _lut[d2 & 63 | 128] + _lut[d2 >> 8 & 255] + "-" + _lut[d2 >> 16 & 255] + _lut[d2 >> 24 & 255] + _lut[d3 & 255] + _lut[d3 >> 8 & 255] + _lut[d3 >> 16 & 255] + _lut[d3 >> 24 & 255];
19
11
  return uuid.toLowerCase();
20
- }
12
+ }
13
+
14
+ module.exports = generateUUID;
@@ -0,0 +1,14 @@
1
+ import '../chunk-AKU6F3WT.mjs';
2
+
3
+ // src/string/generateUUID.ts
4
+ var _lut = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
5
+ function generateUUID() {
6
+ const d0 = Math.random() * 4294967295 | 0;
7
+ const d1 = Math.random() * 4294967295 | 0;
8
+ const d2 = Math.random() * 4294967295 | 0;
9
+ const d3 = Math.random() * 4294967295 | 0;
10
+ const uuid = _lut[d0 & 255] + _lut[d0 >> 8 & 255] + _lut[d0 >> 16 & 255] + _lut[d0 >> 24 & 255] + "-" + _lut[d1 & 255] + _lut[d1 >> 8 & 255] + "-" + _lut[d1 >> 16 & 15 | 64] + _lut[d1 >> 24 & 255] + "-" + _lut[d2 & 63 | 128] + _lut[d2 >> 8 & 255] + "-" + _lut[d2 >> 16 & 255] + _lut[d2 >> 24 & 255] + _lut[d3 & 255] + _lut[d3 >> 8 & 255] + _lut[d3 >> 16 & 255] + _lut[d3 >> 24 & 255];
11
+ return uuid.toLowerCase();
12
+ }
13
+
14
+ export { generateUUID as default };
@@ -1,15 +1,8 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.generateName = generateName;
7
- /*
8
- (c) by Thomas Konings
9
- Random Name Generator for Javascript
10
- https://gist.github.com/tkon99/4c98af713acc73bed74c
11
- */
3
+ Object.defineProperty(exports, '__esModule', { value: true });
12
4
 
5
+ // src/string/name/en.ts
13
6
  function capFirst(string) {
14
7
  return string.charAt(0).toUpperCase() + string.slice(1);
15
8
  }
@@ -17,11 +10,10 @@ function getRandomInt(min, max) {
17
10
  return Math.floor(Math.random() * (max - min)) + min;
18
11
  }
19
12
  function generateName() {
20
- //prettier-ignore
21
13
  var name1 = ["abandoned", "able", "absolute", "adorable", "adventurous", "academic", "acceptable", "acclaimed", "accomplished", "accurate", "aching", "acidic", "acrobatic", "active", "actual", "adept", "admirable", "admired", "adolescent", "adorable", "adored", "advanced", "afraid", "affectionate", "aged", "aggravating", "aggressive", "agile", "agitated", "agonizing", "agreeable", "ajar", "alarmed", "alarming", "alert", "alienated", "alive", "all", "altruistic", "amazing", "ambitious", "ample", "amused", "amusing", "anchored", "ancient", "angelic", "angry", "anguished", "animated", "annual", "another", "antique", "anxious", "any", "apprehensive", "appropriate", "apt", "arctic", "arid", "aromatic", "artistic", "ashamed", "assured", "astonishing", "athletic", "attached", "attentive", "attractive", "austere", "authentic", "authorized", "automatic", "avaricious", "average", "aware", "awesome", "awful", "awkward", "babyish", "bad", "back", "baggy", "bare", "barren", "basic", "beautiful", "belated", "beloved", "beneficial", "better", "best", "bewitched", "big", "big-hearted", "biodegradable", "bite-sized", "bitter", "black", "black-and-white", "bland", "blank", "blaring", "bleak", "blind", "blissful", "blond", "blue", "blushing", "bogus", "boiling", "bold", "bony", "boring", "bossy", "both", "bouncy", "bountiful", "bowed", "brave", "breakable", "brief", "bright", "brilliant", "brisk", "broken", "bronze", "brown", "bruised", "bubbly", "bulky", "bumpy", "buoyant", "burdensome", "burly", "bustling", "busy", "buttery", "buzzing", "calculating", "calm", "candid", "canine", "capital", "carefree", "careful", "careless", "caring", "cautious", "cavernous", "celebrated", "charming", "cheap", "cheerful", "cheery", "chief", "chilly", "chubby", "circular", "classic", "clean", "clear", "clear-cut", "clever", "close", "closed", "cloudy", "clueless", "clumsy", "cluttered", "coarse", "cold", "colorful", "colorless", "colossal", "comfortable", "common", "compassionate", "competent", "complete", "complex", "complicated", "composed", "concerned", "concrete", "confused", "conscious", "considerate", "constant", "content", "conventional", "cooked", "cool", "cooperative", "coordinated", "corny", "corrupt", "costly", "courageous", "courteous", "crafty", "crazy", "creamy", "creative", "creepy", "criminal", "crisp", "critical", "crooked", "crowded", "cruel", "crushing", "cuddly", "cultivated", "cultured", "cumbersome", "curly", "curvy", "cute", "cylindrical", "damaged", "damp", "dangerous", "dapper", "daring", "darling", "dark", "dazzling", "dead", "deadly", "deafening", "dear", "dearest", "decent", "decimal", "decisive", "deep", "defenseless", "defensive", "defiant", "deficient", "definite", "definitive", "delayed", "delectable", "delicious", "delightful", "delirious", "demanding", "dense", "dental", "dependable", "dependent", "descriptive", "deserted", "detailed", "determined", "devoted", "different", "difficult", "digital", "diligent", "dim", "dimpled", "dimwitted", "direct", "disastrous", "discrete", "disfigured", "disgusting", "disloyal", "dismal", "distant", "downright", "dreary", "dirty", "disguised", "dishonest", "dismal", "distant", "distinct", "distorted", "dizzy", "dopey", "doting", "double", "downright", "drab", "drafty", "dramatic", "dreary", "droopy", "dry", "dual", "dull", "dutiful", "each", "eager", "earnest", "early", "easy", "easy-going", "ecstatic", "edible", "educated", "elaborate", "elastic", "elated", "elderly", "electric", "elegant", "elementary", "elliptical", "embarrassed", "embellished", "eminent", "emotional", "empty", "enchanted", "enchanting", "energetic", "enlightened", "enormous", "enraged", "entire", "envious", "equal", "equatorial", "essential", "esteemed", "ethical", "euphoric", "even", "evergreen", "everlasting", "every", "evil", "exalted", "excellent", "exemplary", "exhausted", "excitable", "excited", "exciting", "exotic", "expensive", "experienced", "expert", "extraneous", "extroverted", "extra-large", "extra-small", "fabulous", "failing", "faint", "fair", "faithful", "fake", "false", "familiar", "famous", "fancy", "fantastic", "far", "faraway", "far-flung", "far-off", "fast", "fat", "fatal", "fatherly", "favorable", "favorite", "fearful", "fearless", "feisty", "feline", "female", "feminine", "few", "fickle", "filthy", "fine", "finished", "firm", "first", "firsthand", "fitting", "fixed", "flaky", "flamboyant", "flashy", "flat", "flawed", "flawless", "flickering", "flimsy", "flippant", "flowery", "fluffy", "fluid", "flustered", "focused", "fond", "foolhardy", "foolish", "forceful", "forked", "formal", "forsaken", "forthright", "fortunate", "fragrant", "frail", "frank", "frayed", "free", "French", "fresh", "frequent", "friendly", "frightened", "frightening", "frigid", "frilly", "frizzy", "frivolous", "front", "frosty", "frozen", "frugal", "fruitful", "full", "fumbling", "functional", "funny", "fussy", "fuzzy", "gargantuan", "gaseous", "general", "generous", "gentle", "genuine", "giant", "giddy", "gigantic", "gifted", "giving", "glamorous", "glaring", "glass", "gleaming", "gleeful", "glistening", "glittering", "gloomy", "glorious", "glossy", "glum", "golden", "good", "good-natured", "gorgeous", "graceful", "gracious", "grand", "grandiose", "granular", "grateful", "grave", "gray", "great", "greedy", "green", "gregarious", "grim", "grimy", "gripping", "grizzled", "gross", "grotesque", "grouchy", "grounded", "growing", "growling", "grown", "grubby", "gruesome", "grumpy", "guilty", "gullible", "gummy", "hairy", "half", "handmade", "handsome", "handy", "happy", "happy-go-lucky", "hard", "hard-to-find", "harmful", "harmless", "harmonious", "harsh", "hasty", "hateful", "haunting", "healthy", "heartfelt", "hearty", "heavenly", "heavy", "hefty", "helpful", "helpless", "hidden", "hideous", "high", "high-level", "hilarious", "hoarse", "hollow", "homely", "honest", "honorable", "honored", "hopeful", "horrible", "hospitable", "hot", "huge", "humble", "humiliating", "humming", "humongous", "hungry", "hurtful", "husky", "icky", "icy", "ideal", "idealistic", "identical", "idle", "idiotic", "idolized", "ignorant", "ill", "illegal", "ill-fated", "ill-informed", "illiterate", "illustrious", "imaginary", "imaginative", "immaculate", "immaterial", "immediate", "immense", "impassioned", "impeccable", "impartial", "imperfect", "imperturbable", "impish", "impolite", "important", "impossible", "impractical", "impressionable", "impressive", "improbable", "impure", "inborn", "incomparable", "incompatible", "incomplete", "inconsequential", "incredible", "indelible", "inexperienced", "indolent", "infamous", "infantile", "infatuated", "inferior", "infinite", "informal", "innocent", "insecure", "insidious", "insignificant", "insistent", "instructive", "insubstantial", "intelligent", "intent", "intentional", "interesting", "internal", "international", "intrepid", "ironclad", "irresponsible", "irritating", "itchy", "jaded", "jagged", "jam-packed", "jaunty", "jealous", "jittery", "joint", "jolly", "jovial", "joyful", "joyous", "jubilant", "judicious", "juicy", "jumbo", "junior", "jumpy", "juvenile", "kaleidoscopic", "keen", "key", "kind", "kindhearted", "kindly", "klutzy", "knobby", "knotty", "knowledgeable", "knowing", "known", "kooky", "kosher", "lame", "lanky", "large", "last", "lasting", "late", "lavish", "lawful", "lazy", "leading", "lean", "leafy", "left", "legal", "legitimate", "light", "lighthearted", "likable", "likely", "limited", "limp", "limping", "linear", "lined", "liquid", "little", "live", "lively", "livid", "loathsome", "lone", "lonely", "long", "long-term", "loose", "lopsided", "lost", "loud", "lovable", "lovely", "loving", "low", "loyal", "lucky", "lumbering", "luminous", "lumpy", "lustrous", "luxurious", "mad", "made-up", "magnificent", "majestic", "major", "male", "mammoth", "married", "marvelous", "masculine", "massive", "mature", "meager", "mealy", "mean", "measly", "meaty", "medical", "mediocre", "medium", "meek", "mellow", "melodic", "memorable", "menacing", "merry", "messy", "metallic", "mild", "milky", "mindless", "miniature", "minor", "minty", "miserable", "miserly", "misguided", "misty", "mixed", "modern", "modest", "moist", "monstrous", "monthly", "monumental", "moral", "mortified", "motherly", "motionless", "mountainous", "muddy", "muffled", "multicolored", "mundane", "murky", "mushy", "musty", "muted", "mysterious", "naive", "narrow", "nasty", "natural", "naughty", "nautical", "near", "neat", "necessary", "needy", "negative", "neglected", "negligible", "neighboring", "nervous", "new", "next", "nice", "nifty", "nimble", "nippy", "nocturnal", "noisy", "nonstop", "normal", "notable", "noted", "noteworthy", "novel", "noxious", "numb", "nutritious", "nutty", "obedient", "obese", "oblong", "oily", "oblong", "obvious", "occasional", "odd", "oddball", "offbeat", "offensive", "official", "old", "old-fashioned", "only", "open", "optimal", "optimistic", "opulent", "orange", "orderly", "organic", "ornate", "ornery", "ordinary", "original", "other", "our", "outlying", "outgoing", "outlandish", "outrageous", "outstanding", "oval", "overcooked", "overdue", "overjoyed", "overlooked", "palatable", "pale", "paltry", "parallel", "parched", "partial", "passionate", "past", "pastel", "peaceful", "peppery", "perfect", "perfumed", "periodic", "perky", "personal", "pertinent", "pesky", "pessimistic", "petty", "phony", "physical", "piercing", "pink", "pitiful", "plain", "plaintive", "plastic", "playful", "pleasant", "pleased", "pleasing", "plump", "plush", "polished", "polite", "political", "pointed", "pointless", "poised", "poor", "popular", "portly", "posh", "positive", "possible", "potable", "powerful", "powerless", "practical", "precious", "present", "prestigious", "pretty", "precious", "previous", "pricey", "prickly", "primary", "prime", "pristine", "private", "prize", "probable", "productive", "profitable", "profuse", "proper", "proud", "prudent", "punctual", "pungent", "puny", "pure", "purple", "pushy", "putrid", "puzzled", "puzzling", "quaint", "qualified", "quarrelsome", "quarterly", "queasy", "querulous", "questionable", "quick", "quick-witted", "quiet", "quintessential", "quirky", "quixotic", "quizzical", "radiant", "ragged", "rapid", "rare", "rash", "raw", "recent", "reckless", "rectangular", "ready", "real", "realistic", "reasonable", "red", "reflecting", "regal", "regular", "reliable", "relieved", "remarkable", "remorseful", "remote", "repentant", "required", "respectful", "responsible", "repulsive", "revolving", "rewarding", "rich", "rigid", "right", "ringed", "ripe", "roasted", "robust", "rosy", "rotating", "rotten", "rough", "round", "rowdy", "royal", "rubbery", "rundown", "ruddy", "rude", "runny", "rural", "rusty", "sad", "safe", "salty", "same", "sandy", "sane", "sarcastic", "sardonic", "satisfied", "scaly", "scarce", "scared", "scary", "scented", "scholarly", "scientific", "scornful", "scratchy", "scrawny", "second", "secondary", "second-hand", "secret", "self-assured", "self-reliant", "selfish", "sentimental", "separate", "serene", "serious", "serpentine", "several", "severe", "shabby", "shadowy", "shady", "shallow", "shameful", "shameless", "sharp", "shimmering", "shiny", "shocked", "shocking", "shoddy", "short", "short-term", "showy", "shrill", "shy", "sick", "silent", "silky", "silly", "silver", "similar", "simple", "simplistic", "sinful", "single", "sizzling", "skeletal", "skinny", "sleepy", "slight", "slim", "slimy", "slippery", "slow", "slushy", "small", "smart", "smoggy", "smooth", "smug", "snappy", "snarling", "sneaky", "sniveling", "snoopy", "sociable", "soft", "soggy", "solid", "somber", "some", "spherical", "sophisticated", "sore", "sorrowful", "soulful", "soupy", "sour", "Spanish", "sparkling", "sparse", "specific", "spectacular", "speedy", "spicy", "spiffy", "spirited", "spiteful", "splendid", "spotless", "spotted", "spry", "square", "squeaky", "squiggly", "stable", "staid", "stained", "stale", "standard", "starchy", "stark", "starry", "steep", "sticky", "stiff", "stimulating", "stingy", "stormy", "straight", "strange", "steel", "strict", "strident", "striking", "striped", "strong", "studious", "stunning", "stupendous", "stupid", "sturdy", "stylish", "subdued", "submissive", "substantial", "subtle", "suburban", "sudden", "sugary", "sunny", "super", "superb", "superficial", "superior", "supportive", "sure-footed", "surprised", "suspicious", "svelte", "sweaty", "sweet", "sweltering", "swift", "sympathetic", "tall", "talkative", "tame", "tan", "tangible", "tart", "tasty", "tattered", "taut", "tedious", "teeming", "tempting", "tender", "tense", "tepid", "terrible", "terrific", "testy", "thankful", "that", "these", "thick", "thin", "third", "thirsty", "this", "thorough", "thorny", "those", "thoughtful", "threadbare", "thrifty", "thunderous", "tidy", "tight", "timely", "tinted", "tiny", "tired", "torn", "total", "tough", "traumatic", "treasured", "tremendous", "tragic", "trained", "tremendous", "triangular", "tricky", "trifling", "trim", "trivial", "troubled", "true", "trusting", "trustworthy", "trusty", "truthful", "tubby", "turbulent", "twin", "ugly", "ultimate", "unacceptable", "unaware", "uncomfortable", "uncommon", "unconscious", "understated", "unequaled", "uneven", "unfinished", "unfit", "unfolded", "unfortunate", "unhappy", "unhealthy", "uniform", "unimportant", "unique", "united", "unkempt", "unknown", "unlawful", "unlined", "unlucky", "unnatural", "unpleasant", "unrealistic", "unripe", "unruly", "unselfish", "unsightly", "unsteady", "unsung", "untidy", "untimely", "untried", "untrue", "unused", "unusual", "unwelcome", "unwieldy", "unwilling", "unwitting", "unwritten", "upbeat", "upright", "upset", "urban", "usable", "used", "useful", "useless", "utilized", "utter", "vacant", "vague", "vain", "valid", "valuable", "vapid", "variable", "vast", "velvety", "venerated", "vengeful", "verifiable", "vibrant", "vicious", "victorious", "vigilant", "vigorous", "villainous", "violet", "violent", "virtual", "virtuous", "visible", "vital", "vivacious", "vivid", "voluminous", "wan", "warlike", "warm", "warmhearted", "warped", "wary", "wasteful", "watchful", "waterlogged", "watery", "wavy", "wealthy", "weak", "weary", "webbed", "wee", "weekly", "weepy", "weighty", "weird", "welcome", "well-documented", "well-groomed", "well-informed", "well-lit", "well-made", "well-off", "well-to-do", "well-worn", "wet", "which", "whimsical", "whirlwind", "whispered", "white", "whole", "whopping", "wicked", "wide", "wide-eyed", "wiggly", "wild", "willing", "wilted", "winding", "windy", "winged", "wiry", "wise", "witty", "wobbly", "woeful", "wonderful", "wooden", "woozy", "wordy", "worldly", "worn", "worried", "worrisome", "worse", "worst", "worthless", "worthwhile", "worthy", "wrathful", "wretched", "writhing", "wrong", "wry", "yawning", "yearly", "yellow", "yellowish", "young", "youthful", "yummy", "zany", "zealous", "zesty", "zigzag", "rocky"];
22
-
23
- //prettier-ignore
24
14
  var name2 = ["people", "history", "way", "art", "world", "information", "map", "family", "government", "health", "system", "computer", "meat", "year", "thanks", "music", "person", "reading", "method", "data", "food", "understanding", "theory", "law", "bird", "literature", "problem", "software", "control", "knowledge", "power", "ability", "economics", "love", "internet", "television", "science", "library", "nature", "fact", "product", "idea", "temperature", "investment", "area", "society", "activity", "story", "industry", "media", "thing", "oven", "community", "definition", "safety", "quality", "development", "language", "management", "player", "variety", "video", "week", "security", "country", "exam", "movie", "organization", "equipment", "physics", "analysis", "policy", "series", "thought", "basis", "boyfriend", "direction", "strategy", "technology", "army", "camera", "freedom", "paper", "environment", "child", "instance", "month", "truth", "marketing", "university", "writing", "article", "department", "difference", "goal", "news", "audience", "fishing", "growth", "income", "marriage", "user", "combination", "failure", "meaning", "medicine", "philosophy", "teacher", "communication", "night", "chemistry", "disease", "disk", "energy", "nation", "road", "role", "soup", "advertising", "location", "success", "addition", "apartment", "education", "math", "moment", "painting", "politics", "attention", "decision", "event", "property", "shopping", "student", "wood", "competition", "distribution", "entertainment", "office", "population", "president", "unit", "category", "cigarette", "context", "introduction", "opportunity", "performance", "driver", "flight", "length", "magazine", "newspaper", "relationship", "teaching", "cell", "dealer", "debate", "finding", "lake", "member", "message", "phone", "scene", "appearance", "association", "concept", "customer", "death", "discussion", "housing", "inflation", "insurance", "mood", "woman", "advice", "blood", "effort", "expression", "importance", "opinion", "payment", "reality", "responsibility", "situation", "skill", "statement", "wealth", "application", "city", "county", "depth", "estate", "foundation", "grandmother", "heart", "perspective", "photo", "recipe", "studio", "topic", "collection", "depression", "imagination", "passion", "percentage", "resource", "setting", "ad", "agency", "college", "connection", "criticism", "debt", "description", "memory", "patience", "secretary", "solution", "administration", "aspect", "attitude", "director", "personality", "psychology", "recommendation", "response", "selection", "storage", "version", "alcohol", "argument", "complaint", "contract", "emphasis", "highway", "loss", "membership", "possession", "preparation", "steak", "union", "agreement", "cancer", "currency", "employment", "engineering", "entry", "interaction", "limit", "mixture", "preference", "region", "republic", "seat", "tradition", "virus", "actor", "classroom", "delivery", "device", "difficulty", "drama", "election", "engine", "football", "guidance", "hotel", "match", "owner", "priority", "protection", "suggestion", "tension", "variation", "anxiety", "atmosphere", "awareness", "bread", "climate", "comparison", "confusion", "construction", "elevator", "emotion", "employee", "employer", "guest", "height", "leadership", "mall", "manager", "operation", "recording", "respect", "sample", "transportation", "boring", "charity", "cousin", "disaster", "editor", "efficiency", "excitement", "extent", "feedback", "guitar", "homework", "leader", "mom", "outcome", "permission", "presentation", "promotion", "reflection", "refrigerator", "resolution", "revenue", "session", "singer", "tennis", "basket", "bonus", "cabinet", "childhood", "church", "clothes", "coffee", "dinner", "drawing", "hair", "hearing", "initiative", "judgment", "lab", "measurement", "mode", "mud", "orange", "poetry", "police", "possibility", "procedure", "queen", "ratio", "relation", "restaurant", "satisfaction", "sector", "signature", "significance", "song", "tooth", "town", "vehicle", "volume", "wife", "accident", "airport", "appointment", "arrival", "assumption", "baseball", "chapter", "committee", "conversation", "database", "enthusiasm", "error", "explanation", "farmer", "gate", "girl", "hall", "historian", "hospital", "injury", "instruction", "maintenance", "manufacturer", "meal", "perception", "pie", "poem", "presence", "proposal", "reception", "replacement", "revolution", "river", "son", "speech", "tea", "village", "warning", "winner", "worker", "writer", "assistance", "breath", "buyer", "chest", "chocolate", "conclusion", "contribution", "cookie", "courage", "desk", "drawer", "establishment", "examination", "garbage", "grocery", "honey", "impression", "improvement", "independence", "insect", "inspection", "inspector", "king", "ladder", "menu", "penalty", "piano", "potato", "profession", "professor", "quantity", "reaction", "requirement", "salad", "sister", "supermarket", "tongue", "weakness", "wedding", "affair", "ambition", "analyst", "apple", "assignment", "assistant", "bathroom", "bedroom", "beer", "birthday", "celebration", "championship", "cheek", "client", "consequence", "departure", "diamond", "dirt", "ear", "fortune", "friendship", "funeral", "gene", "girlfriend", "hat", "indication", "intention", "lady", "midnight", "negotiation", "obligation", "passenger", "pizza", "platform", "poet", "pollution", "recognition", "reputation", "shirt", "speaker", "stranger", "surgery", "sympathy", "tale", "throat", "trainer", "uncle", "youth", "time", "work", "film", "water", "money", "example", "while", "business", "study", "game", "life", "form", "air", "day", "place", "number", "part", "field", "fish", "back", "process", "heat", "hand", "experience", "job", "book", "end", "point", "type", "home", "economy", "value", "body", "market", "guide", "interest", "state", "radio", "course", "company", "price", "size", "card", "list", "mind", "trade", "line", "care", "group", "risk", "word", "fat", "force", "key", "light", "training", "name", "school", "top", "amount", "level", "order", "practice", "research", "sense", "service", "piece", "web", "boss", "sport", "fun", "house", "page", "term", "test", "answer", "sound", "focus", "matter", "kind", "soil", "board", "oil", "picture", "access", "garden", "range", "rate", "reason", "future", "site", "demand", "exercise", "image", "case", "cause", "coast", "action", "age", "bad", "boat", "record", "result", "section", "building", "mouse", "cash", "class", "period", "plan", "store", "tax", "side", "subject", "space", "rule", "stock", "weather", "chance", "figure", "man", "model", "source", "beginning", "earth", "program", "chicken", "design", "feature", "head", "material", "purpose", "question", "rock", "salt", "act", "birth", "car", "dog", "object", "scale", "sun", "note", "profit", "rent", "speed", "style", "war", "bank", "craft", "half", "inside", "outside", "standard", "bus", "exchange", "eye", "fire", "position", "pressure", "stress", "advantage", "benefit", "box", "frame", "issue", "step", "cycle", "face", "item", "metal", "paint", "review", "room", "screen", "structure", "view", "account", "ball", "discipline", "medium", "share", "balance", "bit", "black", "bottom", "choice", "gift", "impact", "machine", "shape", "tool", "wind", "address", "average", "career", "culture", "morning", "pot", "sign", "table", "task", "condition", "contact", "credit", "egg", "hope", "ice", "network", "north", "square", "attempt", "date", "effect", "link", "post", "star", "voice", "capital", "challenge", "friend", "self", "shot", "brush", "couple", "exit", "front", "function", "lack", "living", "plant", "plastic", "spot", "summer", "taste", "theme", "track", "wing", "brain", "button", "click", "desire", "foot", "gas", "influence", "notice", "rain", "wall", "base", "damage", "distance", "feeling", "pair", "savings", "staff", "sugar", "target", "text", "animal", "author", "budget", "discount", "file", "ground", "lesson", "minute", "officer", "phase", "reference", "register", "sky", "stage", "stick", "title", "trouble", "bowl", "bridge", "campaign", "character", "club", "edge", "evidence", "fan", "letter", "lock", "maximum", "novel", "option", "pack", "park", "quarter", "skin", "sort", "weight", "baby", "background", "carry", "dish", "factor", "fruit", "glass", "joint", "master", "muscle", "red", "strength", "traffic", "trip", "vegetable", "appeal", "chart", "gear", "ideal", "kitchen", "land", "log", "mother", "net", "party", "principle", "relative", "sale", "season", "signal", "spirit", "street", "tree", "wave", "belt", "bench", "commission", "copy", "drop", "minimum", "path", "progress", "project", "sea", "south", "status", "stuff", "ticket", "tour", "angle", "blue", "breakfast", "confidence", "daughter", "degree", "doctor", "dot", "dream", "duty", "essay", "father", "fee", "finance", "hour", "juice", "luck", "milk", "mouth", "peace", "pipe", "stable", "storm", "substance", "team", "trick", "afternoon", "bat", "beach", "blank", "catch", "chain", "consideration", "cream", "crew", "detail", "gold", "interview", "kid", "mark", "mission", "pain", "pleasure", "score", "screw", "sex", "shop", "shower", "suit", "tone", "window", "agent", "band", "bath", "block", "bone", "calendar", "candidate", "cap", "coat", "contest", "corner", "court", "cup", "district", "door", "east", "finger", "garage", "guarantee", "hole", "hook", "implement", "layer", "lecture", "lie", "manner", "meeting", "nose", "parking", "partner", "profile", "rice", "routine", "schedule", "swimming", "telephone", "tip", "winter", "airline", "bag", "battle", "bed", "bill", "bother", "cake", "code", "curve", "designer", "dimension", "dress", "ease", "emergency", "evening", "extension", "farm", "fight", "gap", "grade", "holiday", "horror", "horse", "host", "husband", "loan", "mistake", "mountain", "nail", "noise", "occasion", "package", "patient", "pause", "phrase", "proof", "race", "relief", "sand", "sentence", "shoulder", "smoke", "stomach", "string", "tourist", "towel", "vacation", "west", "wheel", "wine", "arm", "aside", "associate", "bet", "blow", "border", "branch", "breast", "brother", "buddy", "bunch", "chip", "coach", "cross", "document", "draft", "dust", "expert", "floor", "god", "golf", "habit", "iron", "judge", "knife", "landscape", "league", "mail", "mess", "native", "opening", "parent", "pattern", "pin", "pool", "pound", "request", "salary", "shame", "shelter", "shoe", "silver", "tackle", "tank", "trust", "assist", "bake", "bar", "bell", "bike", "blame", "boy", "brick", "chair", "closet", "clue", "collar", "comment", "conference", "devil", "diet", "fear", "fuel", "glove", "jacket", "lunch", "monitor", "mortgage", "nurse", "pace", "panic", "peak", "plane", "reward", "row", "sandwich", "shock", "spite", "spray", "surprise", "till", "transition", "weekend", "welcome", "yard", "alarm", "bend", "bicycle", "bite", "blind", "bottle", "cable", "candle", "clerk", "cloud", "concert", "counter", "flower", "grandfather", "harm", "knee", "lawyer", "leather", "load", "mirror", "neck", "pension", "plate", "purple", "ruin", "ship", "skirt", "slice", "snow", "specialist", "stroke", "switch", "trash", "tune", "zone", "anger", "award", "bid", "bitter", "boot", "bug", "camp", "candy", "carpet", "cat", "champion", "channel", "clock", "comfort", "cow", "crack", "engineer", "entrance", "fault", "grass", "guy", "hell", "highlight", "incident", "island", "joke", "jury", "leg", "lip", "mate", "motor", "nerve", "passage", "pen", "pride", "priest", "prize", "promise", "resident", "resort", "ring", "roof", "rope", "sail", "scheme", "script", "sock", "station", "toe", "tower", "truck", "witness", "can", "will", "other", "use", "make", "good", "look", "help", "go", "great", "being", "still", "public", "read", "keep", "start", "give", "human", "local", "general", "specific", "long", "play", "feel", "high", "put", "common", "set", "change", "simple", "past", "big", "possible", "particular", "major", "personal", "current", "national", "cut", "natural", "physical", "show", "try", "check", "second", "call", "move", "pay", "let", "increase", "single", "individual", "turn", "ask", "buy", "guard", "hold", "main", "offer", "potential", "professional", "international", "travel", "cook", "alternative", "special", "working", "whole", "dance", "excuse", "cold", "commercial", "low", "purchase", "deal", "primary", "worth", "fall", "necessary", "positive", "produce", "search", "present", "spend", "talk", "creative", "tell", "cost", "drive", "green", "support", "glad", "remove", "return", "run", "complex", "due", "effective", "middle", "regular", "reserve", "independent", "leave", "original", "reach", "rest", "serve", "watch", "beautiful", "charge", "active", "break", "negative", "safe", "stay", "visit", "visual", "affect", "cover", "report", "rise", "walk", "white", "junior", "pick", "unique", "classic", "final", "lift", "mix", "private", "stop", "teach", "western", "concern", "familiar", "fly", "official", "broad", "comfortable", "gain", "rich", "save", "stand", "young", "heavy", "lead", "listen", "valuable", "worry", "handle", "leading", "meet", "release", "sell", "finish", "normal", "press", "ride", "secret", "spread", "spring", "tough", "wait", "brown", "deep", "display", "flow", "hit", "objective", "shoot", "touch", "cancel", "chemical", "cry", "dump", "extreme", "push", "conflict", "eat", "fill", "formal", "jump", "kick", "opposite", "pass", "pitch", "remote", "total", "treat", "vast", "abuse", "beat", "burn", "deposit", "print", "raise", "sleep", "somewhere", "advance", "consist", "dark", "double", "draw", "equal", "fix", "hire", "internal", "join", "kill", "sensitive", "tap", "win", "attack", "claim", "constant", "drag", "drink", "guess", "minor", "pull", "raw", "soft", "solid", "wear", "weird", "wonder", "annual", "count", "dead", "doubt", "feed", "forever", "impress", "repeat", "round", "sing", "slide", "strip", "wish", "combine", "command", "dig", "divide", "equivalent", "hang", "hunt", "initial", "march", "mention", "spiritual", "survey", "tie", "adult", "brief", "crazy", "escape", "gather", "hate", "prior", "repair", "rough", "sad", "scratch", "sick", "strike", "employ", "external", "hurt", "illegal", "laugh", "lay", "mobile", "nasty", "ordinary", "respond", "royal", "senior", "split", "strain", "struggle", "swim", "train", "upper", "wash", "yellow", "convert", "crash", "dependent", "fold", "funny", "grab", "hide", "miss", "permit", "quote", "recover", "resolve", "roll", "sink", "slip", "spare", "suspect", "sweet", "swing", "twist", "upstairs", "usual", "abroad", "brave", "calm", "concentrate", "estimate", "grand", "male", "mine", "prompt", "quiet", "refuse", "regret", "reveal", "rush", "shake", "shift", "shine", "steal", "suck", "surround", "bear", "brilliant", "dare", "dear", "delay", "drunk", "female", "hurry", "inevitable", "invite", "kiss", "neat", "pop", "punch", "quit", "reply", "representative", "resist", "rip", "rub", "silly", "smile", "spell", "stretch", "stupid", "tear", "temporary", "tomorrow", "wake", "wrap", "yesterday", "Thomas", "Tom", "Lieuwe"];
25
15
  var name = capFirst(name1[getRandomInt(0, name1.length - 1)]) + " " + capFirst(name2[getRandomInt(0, name2.length - 1)]);
26
16
  return name;
27
- }
17
+ }
18
+
19
+ exports.generateName = generateName;