toolbox-x 1.0.0
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/LICENSE +201 -0
- package/dist/Color-B3mgF9Dh.d.cts +486 -0
- package/dist/Color-D38Xrw65.d.mts +486 -0
- package/dist/Stylog-Df7eq3-j.d.cts +519 -0
- package/dist/Stylog-jvlLcMQq.d.mts +519 -0
- package/dist/array-DvW0zIu6.d.mts +130 -0
- package/dist/array-rUnEVisO.d.cts +130 -0
- package/dist/basics-D_eSv0cu.cjs +132 -0
- package/dist/basics-Dp_aEK81.mjs +115 -0
- package/dist/basics-WEYWlnRO.d.cts +95 -0
- package/dist/basics-uBSfkBEI.d.mts +95 -0
- package/dist/case-BWIt8Ash.mjs +449 -0
- package/dist/case-C-S-b5YP.d.cts +327 -0
- package/dist/case-CS8Ii3A7.cjs +526 -0
- package/dist/case-CybASFPD.d.mts +327 -0
- package/dist/change-case.cjs +32 -0
- package/dist/change-case.d.cts +18 -0
- package/dist/change-case.d.mts +18 -0
- package/dist/change-case.mjs +19 -0
- package/dist/colors.cjs +574 -0
- package/dist/colors.d.cts +355 -0
- package/dist/colors.d.mts +355 -0
- package/dist/colors.mjs +547 -0
- package/dist/constants-2gAw23_7.mjs +144 -0
- package/dist/constants-B34K0QPi.d.cts +21 -0
- package/dist/constants-BIBDKY1u.cjs +924 -0
- package/dist/constants-BWT-810U.cjs +158 -0
- package/dist/constants-BwbHnXlM.mjs +662 -0
- package/dist/constants-BxN9l5el.cjs +74 -0
- package/dist/constants-CLS_bgKD.d.mts +847 -0
- package/dist/constants-D73iFu8g.mjs +171 -0
- package/dist/constants-DAfRxaa8.mjs +62 -0
- package/dist/constants-DQYeCjlx.cjs +207 -0
- package/dist/constants-Deeie-iH.d.mts +21 -0
- package/dist/constants-DpTG9RP6.d.mts +29 -0
- package/dist/constants-DqwnkJ_d.cjs +740 -0
- package/dist/constants-DvRUY_FY.cjs +150 -0
- package/dist/constants-VcRtQu0K.d.cts +29 -0
- package/dist/constants-X5hm1UtB.mjs +912 -0
- package/dist/constants-eNd-iYsV.mjs +134 -0
- package/dist/constants-qm8FafmD.d.cts +847 -0
- package/dist/constants.cjs +415 -0
- package/dist/constants.d.cts +184 -0
- package/dist/constants.d.mts +184 -0
- package/dist/constants.mjs +378 -0
- package/dist/convert-BOCgUv2D.cjs +252 -0
- package/dist/convert-Bn4jFomQ.mjs +169 -0
- package/dist/convert-BrzlG-m_.cjs +475 -0
- package/dist/convert-DhaUoPVU.mjs +368 -0
- package/dist/converter-1P90_RcP.d.mts +402 -0
- package/dist/converter-CmkcAppi.d.cts +402 -0
- package/dist/converter.cjs +780 -0
- package/dist/converter.d.cts +29 -0
- package/dist/converter.d.mts +29 -0
- package/dist/converter.mjs +771 -0
- package/dist/countries-CIpmtEzV.cjs +1469 -0
- package/dist/countries-Cy0xiqS3.mjs +1463 -0
- package/dist/css-colors-Bx947Ng3.d.cts +179 -0
- package/dist/css-colors-CXCDqQbG.cjs +186 -0
- package/dist/css-colors-CXTp1vvy.d.mts +179 -0
- package/dist/css-colors-DfUW3nTR.mjs +180 -0
- package/dist/date.cjs +332 -0
- package/dist/date.d.cts +213 -0
- package/dist/date.d.mts +213 -0
- package/dist/date.mjs +298 -0
- package/dist/dom.cjs +461 -0
- package/dist/dom.d.cts +228 -0
- package/dist/dom.d.mts +228 -0
- package/dist/dom.mjs +429 -0
- package/dist/form-BMFVGUrN.d.mts +118 -0
- package/dist/form-DRFbryvK.d.cts +118 -0
- package/dist/guards-3kaUX66g.mjs +157 -0
- package/dist/guards-C8gkvIHb.cjs +240 -0
- package/dist/guards-DdyU4h4o.mjs +110 -0
- package/dist/guards-Efhp1mNy.cjs +151 -0
- package/dist/guards.cjs +172 -0
- package/dist/guards.d.cts +399 -0
- package/dist/guards.d.mts +399 -0
- package/dist/guards.mjs +75 -0
- package/dist/hash-B6JPEyAz.d.mts +131 -0
- package/dist/hash-NTpeKYB_.d.cts +131 -0
- package/dist/hash.cjs +2126 -0
- package/dist/hash.d.cts +1239 -0
- package/dist/hash.d.mts +1239 -0
- package/dist/hash.mjs +2095 -0
- package/dist/http-status-BAZdtr7-.d.mts +65 -0
- package/dist/http-status-U_3MtoGb.d.cts +65 -0
- package/dist/http-status.cjs +173 -0
- package/dist/http-status.d.cts +142 -0
- package/dist/http-status.d.mts +142 -0
- package/dist/http-status.mjs +171 -0
- package/dist/index.cjs +2551 -0
- package/dist/index.d.cts +1493 -0
- package/dist/index.d.mts +1493 -0
- package/dist/index.mjs +2357 -0
- package/dist/object-B0TV3eHx.d.mts +8052 -0
- package/dist/object-Blq0Amdv.d.cts +8052 -0
- package/dist/objectify-CDs0Fbr1.mjs +417 -0
- package/dist/objectify-DIJ-OBmo.cjs +524 -0
- package/dist/paginator.cjs +245 -0
- package/dist/paginator.d.cts +144 -0
- package/dist/paginator.d.mts +144 -0
- package/dist/paginator.mjs +243 -0
- package/dist/parse-2ubxXZRp.cjs +211 -0
- package/dist/parse-N7g942uy.mjs +164 -0
- package/dist/pluralizer-BjMIc6uT.d.mts +42 -0
- package/dist/pluralizer-Cb6ZmrDl.d.cts +42 -0
- package/dist/pluralizer.cjs +678 -0
- package/dist/pluralizer.d.cts +152 -0
- package/dist/pluralizer.d.mts +152 -0
- package/dist/pluralizer.mjs +676 -0
- package/dist/primitives-B26uZolQ.cjs +228 -0
- package/dist/primitives-KsFUp3kQ.mjs +144 -0
- package/dist/specials-D48_IZbd.d.mts +108 -0
- package/dist/specials-DzLr1ZgU.cjs +477 -0
- package/dist/specials-LVONlKbQ.d.cts +108 -0
- package/dist/specials-uhDuRg8H.mjs +292 -0
- package/dist/string-CBAbxaG1.d.mts +258 -0
- package/dist/string-CsNsm_65.d.cts +258 -0
- package/dist/stylog.cjs +621 -0
- package/dist/stylog.d.cts +49 -0
- package/dist/stylog.d.mts +49 -0
- package/dist/stylog.mjs +614 -0
- package/dist/timezone-B2OYK6Fh.mjs +5589 -0
- package/dist/timezone-Beh9IGpw.cjs +5625 -0
- package/dist/types/array.cjs +16 -0
- package/dist/types/array.d.cts +18 -0
- package/dist/types/array.d.mts +18 -0
- package/dist/types/array.mjs +17 -0
- package/dist/types/colors.cjs +16 -0
- package/dist/types/colors.d.cts +18 -0
- package/dist/types/colors.d.mts +18 -0
- package/dist/types/colors.mjs +17 -0
- package/dist/types/converter.cjs +16 -0
- package/dist/types/converter.d.cts +18 -0
- package/dist/types/converter.d.mts +18 -0
- package/dist/types/converter.mjs +17 -0
- package/dist/types/form.cjs +16 -0
- package/dist/types/form.d.cts +18 -0
- package/dist/types/form.d.mts +18 -0
- package/dist/types/form.mjs +17 -0
- package/dist/types/hash.cjs +16 -0
- package/dist/types/hash.d.cts +18 -0
- package/dist/types/hash.d.mts +18 -0
- package/dist/types/hash.mjs +17 -0
- package/dist/types/http-status.cjs +16 -0
- package/dist/types/http-status.d.cts +18 -0
- package/dist/types/http-status.d.mts +18 -0
- package/dist/types/http-status.mjs +17 -0
- package/dist/types/index.cjs +16 -0
- package/dist/types/index.d.cts +18 -0
- package/dist/types/index.d.mts +18 -0
- package/dist/types/index.mjs +17 -0
- package/dist/types/number.cjs +16 -0
- package/dist/types/number.d.cts +18 -0
- package/dist/types/number.d.mts +18 -0
- package/dist/types/number.mjs +17 -0
- package/dist/types/object.cjs +16 -0
- package/dist/types/object.d.cts +18 -0
- package/dist/types/object.d.mts +18 -0
- package/dist/types/object.mjs +17 -0
- package/dist/types/pluralizer.cjs +16 -0
- package/dist/types/pluralizer.d.cts +18 -0
- package/dist/types/pluralizer.d.mts +18 -0
- package/dist/types/pluralizer.mjs +17 -0
- package/dist/types/string.cjs +16 -0
- package/dist/types/string.d.cts +18 -0
- package/dist/types/string.d.mts +18 -0
- package/dist/types/string.mjs +17 -0
- package/dist/types/stylog.cjs +16 -0
- package/dist/types/stylog.d.cts +18 -0
- package/dist/types/stylog.d.mts +18 -0
- package/dist/types/stylog.mjs +17 -0
- package/dist/types/utils.cjs +16 -0
- package/dist/types/utils.d.cts +18 -0
- package/dist/types/utils.d.mts +18 -0
- package/dist/types/utils.mjs +17 -0
- package/dist/types/verbalizer.cjs +16 -0
- package/dist/types/verbalizer.d.cts +30 -0
- package/dist/types/verbalizer.d.mts +30 -0
- package/dist/types/verbalizer.mjs +17 -0
- package/dist/utilities-CLUmdQeV.cjs +140 -0
- package/dist/utilities-m5yFKqLd.mjs +105 -0
- package/dist/utils-ClW9LA6f.mjs +449 -0
- package/dist/utils-DLFRgXUC.cjs +568 -0
- package/dist/verbalizer.cjs +998 -0
- package/dist/verbalizer.d.cts +148 -0
- package/dist/verbalizer.d.mts +148 -0
- package/dist/verbalizer.mjs +996 -0
- package/package.json +249 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//#region src/date/constants.ts
|
|
18
|
+
/** Array of strings containing all the seven week-day names, starting with `Sunday` */
|
|
19
|
+
const DAYS = /* @__PURE__ */ Object.freeze([
|
|
20
|
+
"Sunday",
|
|
21
|
+
"Monday",
|
|
22
|
+
"Tuesday",
|
|
23
|
+
"Wednesday",
|
|
24
|
+
"Thursday",
|
|
25
|
+
"Friday",
|
|
26
|
+
"Saturday"
|
|
27
|
+
]);
|
|
28
|
+
/** Array of strings containing all the 12 month names, starting with `January` */
|
|
29
|
+
const MONTHS = /* @__PURE__ */ Object.freeze([
|
|
30
|
+
"January",
|
|
31
|
+
"February",
|
|
32
|
+
"March",
|
|
33
|
+
"April",
|
|
34
|
+
"May",
|
|
35
|
+
"June",
|
|
36
|
+
"July",
|
|
37
|
+
"August",
|
|
38
|
+
"September",
|
|
39
|
+
"October",
|
|
40
|
+
"November",
|
|
41
|
+
"December"
|
|
42
|
+
]);
|
|
43
|
+
const YEAR_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
44
|
+
"YYYY",
|
|
45
|
+
"YY",
|
|
46
|
+
"yyyy",
|
|
47
|
+
"yy"
|
|
48
|
+
]);
|
|
49
|
+
const MONTH_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
50
|
+
"M",
|
|
51
|
+
"MM",
|
|
52
|
+
"mmm",
|
|
53
|
+
"mmmm"
|
|
54
|
+
]);
|
|
55
|
+
const DATE_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
56
|
+
"DD",
|
|
57
|
+
"D",
|
|
58
|
+
"Do"
|
|
59
|
+
]);
|
|
60
|
+
const DAY_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
61
|
+
"d",
|
|
62
|
+
"dd",
|
|
63
|
+
"ddd"
|
|
64
|
+
]);
|
|
65
|
+
const HOUR_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
66
|
+
"H",
|
|
67
|
+
"HH",
|
|
68
|
+
"hh",
|
|
69
|
+
"h"
|
|
70
|
+
]);
|
|
71
|
+
const MINUTE_FORMATS = /* @__PURE__ */ Object.freeze(["mm", "m"]);
|
|
72
|
+
const SECOND_FORMATS = /* @__PURE__ */ Object.freeze(["ss", "s"]);
|
|
73
|
+
const MILLISECOND_FORMATS = /* @__PURE__ */ Object.freeze(["ms", "mss"]);
|
|
74
|
+
const TIME_FORMATS = /* @__PURE__ */ Object.freeze(["a", "A"]);
|
|
75
|
+
const EXTRA_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
76
|
+
"Z",
|
|
77
|
+
"ZZ",
|
|
78
|
+
"S",
|
|
79
|
+
"SS"
|
|
80
|
+
]);
|
|
81
|
+
const SORTED_TIME_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
82
|
+
...YEAR_FORMATS,
|
|
83
|
+
...MONTH_FORMATS,
|
|
84
|
+
...DAY_FORMATS,
|
|
85
|
+
...DATE_FORMATS,
|
|
86
|
+
...HOUR_FORMATS,
|
|
87
|
+
...MINUTE_FORMATS,
|
|
88
|
+
...SECOND_FORMATS,
|
|
89
|
+
...MILLISECOND_FORMATS,
|
|
90
|
+
...TIME_FORMATS,
|
|
91
|
+
...EXTRA_FORMATS
|
|
92
|
+
].sort((a, b) => b.length - a.length));
|
|
93
|
+
/** Western Zodiac Signs */
|
|
94
|
+
const WESTERN_ZODIAC_SIGNS = /* @__PURE__ */ Object.freeze([
|
|
95
|
+
["Capricorn", [12, 22]],
|
|
96
|
+
["Aquarius", [1, 20]],
|
|
97
|
+
["Pisces", [2, 19]],
|
|
98
|
+
["Aries", [3, 21]],
|
|
99
|
+
["Taurus", [4, 20]],
|
|
100
|
+
["Gemini", [5, 21]],
|
|
101
|
+
["Cancer", [6, 21]],
|
|
102
|
+
["Leo", [7, 23]],
|
|
103
|
+
["Virgo", [8, 23]],
|
|
104
|
+
["Libra", [9, 23]],
|
|
105
|
+
["Scorpio", [10, 23]],
|
|
106
|
+
["Sagittarius", [11, 22]]
|
|
107
|
+
]);
|
|
108
|
+
/** Vedic Zodiac Sign */
|
|
109
|
+
const VEDIC_ZODIAC_SIGNS = /* @__PURE__ */ Object.freeze([
|
|
110
|
+
["Capricorn", [1, 14]],
|
|
111
|
+
["Aquarius", [2, 13]],
|
|
112
|
+
["Pisces", [3, 14]],
|
|
113
|
+
["Aries", [4, 14]],
|
|
114
|
+
["Taurus", [5, 15]],
|
|
115
|
+
["Gemini", [6, 15]],
|
|
116
|
+
["Cancer", [7, 16]],
|
|
117
|
+
["Leo", [8, 17]],
|
|
118
|
+
["Virgo", [9, 17]],
|
|
119
|
+
["Libra", [10, 17]],
|
|
120
|
+
["Scorpio", [11, 16]],
|
|
121
|
+
["Sagittarius", [12, 16]]
|
|
122
|
+
]);
|
|
123
|
+
/** Map to different time units to milliseconds */
|
|
124
|
+
const MS_MAP = /* @__PURE__ */ Object.freeze((() => {
|
|
125
|
+
const s = 1e3;
|
|
126
|
+
const m = s * 60;
|
|
127
|
+
const h = m * 60;
|
|
128
|
+
const d = h * 24;
|
|
129
|
+
const w = d * 7;
|
|
130
|
+
const y = d * 365.25;
|
|
131
|
+
const mo = y / 12;
|
|
132
|
+
return {
|
|
133
|
+
y,
|
|
134
|
+
yr: y,
|
|
135
|
+
yrs: y,
|
|
136
|
+
year: y,
|
|
137
|
+
years: y,
|
|
138
|
+
mo,
|
|
139
|
+
month: mo,
|
|
140
|
+
months: mo,
|
|
141
|
+
w,
|
|
142
|
+
week: w,
|
|
143
|
+
weeks: w,
|
|
144
|
+
d,
|
|
145
|
+
day: d,
|
|
146
|
+
days: d,
|
|
147
|
+
h,
|
|
148
|
+
hr: h,
|
|
149
|
+
hrs: h,
|
|
150
|
+
hour: h,
|
|
151
|
+
hours: h,
|
|
152
|
+
m,
|
|
153
|
+
min: m,
|
|
154
|
+
mins: m,
|
|
155
|
+
minute: m,
|
|
156
|
+
minutes: m,
|
|
157
|
+
s,
|
|
158
|
+
sec: s,
|
|
159
|
+
secs: s,
|
|
160
|
+
second: s,
|
|
161
|
+
seconds: s,
|
|
162
|
+
ms: 1,
|
|
163
|
+
msec: 1,
|
|
164
|
+
msecs: 1,
|
|
165
|
+
millisecond: 1,
|
|
166
|
+
milliseconds: 1
|
|
167
|
+
};
|
|
168
|
+
})());
|
|
169
|
+
|
|
170
|
+
//#endregion
|
|
171
|
+
export { VEDIC_ZODIAC_SIGNS as a, SORTED_TIME_FORMATS as i, MONTHS as n, WESTERN_ZODIAC_SIGNS as o, MS_MAP as r, DAYS as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//#region src/colors/constants.ts
|
|
18
|
+
/** Colors based on the ASCII value (index) of the letter. */
|
|
19
|
+
const ALPHABET_COLOR_PALETTE = /* @__PURE__ */ Object.freeze([
|
|
20
|
+
"#00094C",
|
|
21
|
+
"#00376E",
|
|
22
|
+
"#005600",
|
|
23
|
+
"#024647",
|
|
24
|
+
"#423067",
|
|
25
|
+
"#55188E",
|
|
26
|
+
"#00453E",
|
|
27
|
+
"#00516C",
|
|
28
|
+
"#263E0D",
|
|
29
|
+
"#0F6F3F",
|
|
30
|
+
"#730073",
|
|
31
|
+
"#053636",
|
|
32
|
+
"#253654",
|
|
33
|
+
"#4682B4",
|
|
34
|
+
"#3253B6",
|
|
35
|
+
"#43616C",
|
|
36
|
+
"#036C44",
|
|
37
|
+
"#30784F",
|
|
38
|
+
"#601C1C",
|
|
39
|
+
"#690000",
|
|
40
|
+
"#005B00",
|
|
41
|
+
"#BF0E6C",
|
|
42
|
+
"#008080",
|
|
43
|
+
"#475F47",
|
|
44
|
+
"#546F1C",
|
|
45
|
+
"#824809"
|
|
46
|
+
]);
|
|
47
|
+
/** Colors based on the index of numbers. */
|
|
48
|
+
const NUMBER_COLOR_PALETTE = /* @__PURE__ */ Object.freeze([
|
|
49
|
+
"#893213",
|
|
50
|
+
"#A44C15",
|
|
51
|
+
"#8B4513",
|
|
52
|
+
"#8A1D33",
|
|
53
|
+
"#3B543B",
|
|
54
|
+
"#342656",
|
|
55
|
+
"#A43522",
|
|
56
|
+
"#04605F",
|
|
57
|
+
"#B5680A",
|
|
58
|
+
"#6437B3"
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { NUMBER_COLOR_PALETTE as n, ALPHABET_COLOR_PALETTE as t };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
//#region src/date/constants.ts
|
|
19
|
+
/** Array of strings containing all the seven week-day names, starting with `Sunday` */
|
|
20
|
+
const DAYS = /* @__PURE__ */ Object.freeze([
|
|
21
|
+
"Sunday",
|
|
22
|
+
"Monday",
|
|
23
|
+
"Tuesday",
|
|
24
|
+
"Wednesday",
|
|
25
|
+
"Thursday",
|
|
26
|
+
"Friday",
|
|
27
|
+
"Saturday"
|
|
28
|
+
]);
|
|
29
|
+
/** Array of strings containing all the 12 month names, starting with `January` */
|
|
30
|
+
const MONTHS = /* @__PURE__ */ Object.freeze([
|
|
31
|
+
"January",
|
|
32
|
+
"February",
|
|
33
|
+
"March",
|
|
34
|
+
"April",
|
|
35
|
+
"May",
|
|
36
|
+
"June",
|
|
37
|
+
"July",
|
|
38
|
+
"August",
|
|
39
|
+
"September",
|
|
40
|
+
"October",
|
|
41
|
+
"November",
|
|
42
|
+
"December"
|
|
43
|
+
]);
|
|
44
|
+
const YEAR_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
45
|
+
"YYYY",
|
|
46
|
+
"YY",
|
|
47
|
+
"yyyy",
|
|
48
|
+
"yy"
|
|
49
|
+
]);
|
|
50
|
+
const MONTH_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
51
|
+
"M",
|
|
52
|
+
"MM",
|
|
53
|
+
"mmm",
|
|
54
|
+
"mmmm"
|
|
55
|
+
]);
|
|
56
|
+
const DATE_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
57
|
+
"DD",
|
|
58
|
+
"D",
|
|
59
|
+
"Do"
|
|
60
|
+
]);
|
|
61
|
+
const DAY_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
62
|
+
"d",
|
|
63
|
+
"dd",
|
|
64
|
+
"ddd"
|
|
65
|
+
]);
|
|
66
|
+
const HOUR_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
67
|
+
"H",
|
|
68
|
+
"HH",
|
|
69
|
+
"hh",
|
|
70
|
+
"h"
|
|
71
|
+
]);
|
|
72
|
+
const MINUTE_FORMATS = /* @__PURE__ */ Object.freeze(["mm", "m"]);
|
|
73
|
+
const SECOND_FORMATS = /* @__PURE__ */ Object.freeze(["ss", "s"]);
|
|
74
|
+
const MILLISECOND_FORMATS = /* @__PURE__ */ Object.freeze(["ms", "mss"]);
|
|
75
|
+
const TIME_FORMATS = /* @__PURE__ */ Object.freeze(["a", "A"]);
|
|
76
|
+
const EXTRA_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
77
|
+
"Z",
|
|
78
|
+
"ZZ",
|
|
79
|
+
"S",
|
|
80
|
+
"SS"
|
|
81
|
+
]);
|
|
82
|
+
const SORTED_TIME_FORMATS = /* @__PURE__ */ Object.freeze([
|
|
83
|
+
...YEAR_FORMATS,
|
|
84
|
+
...MONTH_FORMATS,
|
|
85
|
+
...DAY_FORMATS,
|
|
86
|
+
...DATE_FORMATS,
|
|
87
|
+
...HOUR_FORMATS,
|
|
88
|
+
...MINUTE_FORMATS,
|
|
89
|
+
...SECOND_FORMATS,
|
|
90
|
+
...MILLISECOND_FORMATS,
|
|
91
|
+
...TIME_FORMATS,
|
|
92
|
+
...EXTRA_FORMATS
|
|
93
|
+
].sort((a, b) => b.length - a.length));
|
|
94
|
+
/** Western Zodiac Signs */
|
|
95
|
+
const WESTERN_ZODIAC_SIGNS = /* @__PURE__ */ Object.freeze([
|
|
96
|
+
["Capricorn", [12, 22]],
|
|
97
|
+
["Aquarius", [1, 20]],
|
|
98
|
+
["Pisces", [2, 19]],
|
|
99
|
+
["Aries", [3, 21]],
|
|
100
|
+
["Taurus", [4, 20]],
|
|
101
|
+
["Gemini", [5, 21]],
|
|
102
|
+
["Cancer", [6, 21]],
|
|
103
|
+
["Leo", [7, 23]],
|
|
104
|
+
["Virgo", [8, 23]],
|
|
105
|
+
["Libra", [9, 23]],
|
|
106
|
+
["Scorpio", [10, 23]],
|
|
107
|
+
["Sagittarius", [11, 22]]
|
|
108
|
+
]);
|
|
109
|
+
/** Vedic Zodiac Sign */
|
|
110
|
+
const VEDIC_ZODIAC_SIGNS = /* @__PURE__ */ Object.freeze([
|
|
111
|
+
["Capricorn", [1, 14]],
|
|
112
|
+
["Aquarius", [2, 13]],
|
|
113
|
+
["Pisces", [3, 14]],
|
|
114
|
+
["Aries", [4, 14]],
|
|
115
|
+
["Taurus", [5, 15]],
|
|
116
|
+
["Gemini", [6, 15]],
|
|
117
|
+
["Cancer", [7, 16]],
|
|
118
|
+
["Leo", [8, 17]],
|
|
119
|
+
["Virgo", [9, 17]],
|
|
120
|
+
["Libra", [10, 17]],
|
|
121
|
+
["Scorpio", [11, 16]],
|
|
122
|
+
["Sagittarius", [12, 16]]
|
|
123
|
+
]);
|
|
124
|
+
/** Map to different time units to milliseconds */
|
|
125
|
+
const MS_MAP = /* @__PURE__ */ Object.freeze((() => {
|
|
126
|
+
const s = 1e3;
|
|
127
|
+
const m = s * 60;
|
|
128
|
+
const h = m * 60;
|
|
129
|
+
const d = h * 24;
|
|
130
|
+
const w = d * 7;
|
|
131
|
+
const y = d * 365.25;
|
|
132
|
+
const mo = y / 12;
|
|
133
|
+
return {
|
|
134
|
+
y,
|
|
135
|
+
yr: y,
|
|
136
|
+
yrs: y,
|
|
137
|
+
year: y,
|
|
138
|
+
years: y,
|
|
139
|
+
mo,
|
|
140
|
+
month: mo,
|
|
141
|
+
months: mo,
|
|
142
|
+
w,
|
|
143
|
+
week: w,
|
|
144
|
+
weeks: w,
|
|
145
|
+
d,
|
|
146
|
+
day: d,
|
|
147
|
+
days: d,
|
|
148
|
+
h,
|
|
149
|
+
hr: h,
|
|
150
|
+
hrs: h,
|
|
151
|
+
hour: h,
|
|
152
|
+
hours: h,
|
|
153
|
+
m,
|
|
154
|
+
min: m,
|
|
155
|
+
mins: m,
|
|
156
|
+
minute: m,
|
|
157
|
+
minutes: m,
|
|
158
|
+
s,
|
|
159
|
+
sec: s,
|
|
160
|
+
secs: s,
|
|
161
|
+
second: s,
|
|
162
|
+
seconds: s,
|
|
163
|
+
ms: 1,
|
|
164
|
+
msec: 1,
|
|
165
|
+
msecs: 1,
|
|
166
|
+
millisecond: 1,
|
|
167
|
+
milliseconds: 1
|
|
168
|
+
};
|
|
169
|
+
})());
|
|
170
|
+
|
|
171
|
+
//#endregion
|
|
172
|
+
Object.defineProperty(exports, 'DAYS', {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () {
|
|
175
|
+
return DAYS;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, 'MONTHS', {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () {
|
|
181
|
+
return MONTHS;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(exports, 'MS_MAP', {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
get: function () {
|
|
187
|
+
return MS_MAP;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, 'SORTED_TIME_FORMATS', {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () {
|
|
193
|
+
return SORTED_TIME_FORMATS;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
Object.defineProperty(exports, 'VEDIC_ZODIAC_SIGNS', {
|
|
197
|
+
enumerable: true,
|
|
198
|
+
get: function () {
|
|
199
|
+
return VEDIC_ZODIAC_SIGNS;
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, 'WESTERN_ZODIAC_SIGNS', {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () {
|
|
205
|
+
return WESTERN_ZODIAC_SIGNS;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//#region src/string/constants.d.ts
|
|
18
|
+
/** List of conjunctions, prepositions, auxiliary verbs and articles in lowercase as array of strings */
|
|
19
|
+
declare const LOWERCASE: readonly ["and", "but", "or", "nor", "for", "so", "yet", "after", "although", "as", "because", "before", "even", "if", "once", "since", "than", "that", "though", "unless", "until", "when", "whenever", "where", "whereas", "wherever", "whether", "while", "about", "above", "across", "after", "against", "along", "among", "around", "as", "at", "before", "behind", "below", "beneath", "beside", "between", "beyond", "but", "by", "concerning", "considering", "despite", "down", "during", "except", "following", "for", "from", "in", "inside", "into", "like", "minus", "near", "of", "off", "on", "onto", "opposite", "out", "outside", "over", "past", "per", "plus", "regarding", "round", "save", "since", "than", "through", "throughout", "till", "to", "toward", "towards", "under", "underneath", "unlike", "until", "up", "upon", "versus", "via", "with", "within", "without", "a", "an", "the", "am", "are", "be", "been", "being", "can", "could", "do", "does", "did", "had", "has", "have", "is", "may", "might", "must", "shall", "should", "was", "were", "will", "would"];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { LOWERCASE as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 - present Nazmul Hassan
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
//#region src/converter/constants.d.ts
|
|
18
|
+
/** Record of Units (Categorized) */
|
|
19
|
+
declare const UNITS: Readonly<{
|
|
20
|
+
readonly time: readonly ["nanosecond", "microsecond", "millisecond", "second", "minute", "hour", "day", "week", "month", "year", "decade", "century", "millennium"];
|
|
21
|
+
readonly length: readonly ["millimeter", "centimeter", "meter", "kilometer", "millimetre", "centimetre", "metre", "kilometre", "inch", "foot", "yard", "mile", "nautical-mile", "light-year"];
|
|
22
|
+
readonly data: readonly ["bit", "byte", "kilobit", "kilobyte", "megabit", "megabyte", "gigabit", "gigabyte", "terabit", "terabyte", "petabit", "petabyte"];
|
|
23
|
+
readonly temp: readonly ["celsius", "fahrenheit", "kelvin"];
|
|
24
|
+
readonly area: readonly ["square-millimeter", "square-centimeter", "square-meter", "square-kilometer", "square-millimetre", "square-centimetre", "square-metre", "square-kilometre", "square-inch", "square-foot", "square-yard", "square-mile", "hectare", "acre"];
|
|
25
|
+
readonly volume: readonly ["cubic-millimeter", "cubic-centimeter", "cubic-meter", "cubic-kilometer", "cubic-millimetre", "cubic-centimetre", "cubic-metre", "cubic-kilometre", "cubic-inch", "cubic-foot", "cubic-yard", "liter", "litre", "milliliter", "millilitre", "gallon", "quart", "pint", "cup", "tablespoon", "teaspoon"];
|
|
26
|
+
readonly mass: readonly ["microgram", "milligram", "gram", "kilogram", "tonne", "ounce", "pound", "stone", "short-ton", "long-ton"];
|
|
27
|
+
}>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { UNITS as t };
|