@utilix-tech/sdk 0.9.0 → 0.11.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/CHANGELOG.md +7 -0
- package/README.md +19 -3
- package/dist/{chunk-QJE743LY.js → chunk-GGDDCTFM.js} +224 -1
- package/dist/{chunk-LI5AME5R.js → chunk-OB56VNKJ.js} +85 -1
- package/dist/index.cjs +311 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-Cy02-FIO.d.cts → network-DaNoZ5ER.d.cts} +39 -2
- package/dist/{network-Cy02-FIO.d.ts → network-DaNoZ5ER.d.ts} +39 -2
- package/dist/tools/network.cjs +84 -0
- package/dist/tools/network.d.cts +1 -1
- package/dist/tools/network.d.ts +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/units.cjs +223 -0
- package/dist/tools/units.d.cts +1 -1
- package/dist/tools/units.d.ts +1 -1
- package/dist/tools/units.js +1 -1
- package/dist/{units-6lwDYBvX.d.cts → units-BG387sch.d.cts} +67 -2
- package/dist/{units-6lwDYBvX.d.ts → units-BG387sch.d.ts} +67 -2
- package/package.json +1 -1
package/dist/tools/network.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DNS_RECORD_TYPES, a as DnsRecord, b as DnsRecordType, c as DnsResponse, G as GeoResult, H as HTTP_HEADERS, d as HarEntry, e as HarParseResult, f as HarSummary, g as HeaderCategory, h as HttpHeader, P as ParsedDnsResult, i as ParsedGeoResult, S as STATUS_CODES,
|
|
1
|
+
export { D as DNS_RECORD_TYPES, a as DnsRecord, b as DnsRecordType, c as DnsResponse, G as GeoResult, H as HTTP_HEADERS, d as HarEntry, e as HarParseResult, f as HarSummary, g as HeaderCategory, h as HttpHeader, P as ParsedDnsResult, i as ParsedGeoResult, R as RobotsGroup, j as RobotsIssue, k as RobotsRule, l as RobotsValidationResult, S as STATUS_CODES, m as SitemapIndexEntry, o as SitemapIssue, p as SitemapUrlEntry, q as SitemapValidationResult, r as StatusCode, s as buildDnsQueryUrl, t as buildGeoUrl, u as buildMapUrl, v as countryCodeToFlag, w as formatCoordinates, x as formatTtl, y as getByCategory, z as getHeader, A as getHeadersByCategory, B as getStatusByCategory, C as getStatusCode, E as isClientError, F as isServerError, I as isSuccess, J as isValidIp, K as isValidIpv4, L as isValidIpv6, M as parseDnsResponse, N as parseGeoResponse, O as parseHar, Q as searchHeaders, T as searchStatusCodes, U as statusCodeToText, V as typeNumberToLabel, W as validateDomain, X as validateHeaderName, Y as validateHeaderValue, Z as validateRobotsTxt, _ as validateSitemap } from '../network-DaNoZ5ER.js';
|
package/dist/tools/network.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DNS_RECORD_TYPES, HTTP_HEADERS, STATUS_CODES, buildDnsQueryUrl, buildGeoUrl, buildMapUrl, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, parseDnsResponse, parseGeoResponse, parseHar, searchHeaders, searchStatusCodes, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateSitemap } from '../chunk-
|
|
1
|
+
export { DNS_RECORD_TYPES, HTTP_HEADERS, STATUS_CODES, buildDnsQueryUrl, buildGeoUrl, buildMapUrl, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, parseDnsResponse, parseGeoResponse, parseHar, searchHeaders, searchStatusCodes, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateRobotsTxt, validateSitemap } from '../chunk-OB56VNKJ.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -831,6 +831,226 @@ function sortVersions(versions, order = "asc") {
|
|
|
831
831
|
return order === "asc" ? cmp : -cmp;
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
|
+
var CARD_NETWORK_RULES = [
|
|
835
|
+
{ name: "American Express", lengths: [15], test: (d) => /^3[47]/.test(d) },
|
|
836
|
+
{ name: "Diners Club", lengths: [14], test: (d) => /^3(?:0[0-5]|[68])/.test(d) },
|
|
837
|
+
{
|
|
838
|
+
name: "Discover",
|
|
839
|
+
lengths: [16, 19],
|
|
840
|
+
test: (d) => /^(?:6011|65|64[4-9])/.test(d) || /^622(?:12[6-9]|1[3-9]\d|[2-8]\d{2}|9[01]\d|92[0-5])/.test(d)
|
|
841
|
+
},
|
|
842
|
+
{ name: "JCB", lengths: [16], test: (d) => /^35(?:2[89]|[3-8]\d)/.test(d) },
|
|
843
|
+
{
|
|
844
|
+
name: "Mastercard",
|
|
845
|
+
lengths: [16],
|
|
846
|
+
test: (d) => {
|
|
847
|
+
const two = parseInt(d.slice(0, 2), 10);
|
|
848
|
+
const four = parseInt(d.slice(0, 4), 10);
|
|
849
|
+
return two >= 51 && two <= 55 || four >= 2221 && four <= 2720;
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{ name: "Maestro", lengths: [12, 13, 14, 15, 16, 17, 18, 19], test: (d) => /^(?:50|5[6-8]|6304|6390|67)/.test(d) },
|
|
853
|
+
{ name: "UnionPay", lengths: [16, 17, 18, 19], test: (d) => /^62/.test(d) },
|
|
854
|
+
{ name: "Visa", lengths: [13, 16, 19], test: (d) => /^4/.test(d) }
|
|
855
|
+
];
|
|
856
|
+
function luhnCheck(digits) {
|
|
857
|
+
let sum = 0;
|
|
858
|
+
let shouldDouble = false;
|
|
859
|
+
for (let i = digits.length - 1; i >= 0; i--) {
|
|
860
|
+
let d = parseInt(digits[i], 10);
|
|
861
|
+
if (shouldDouble) {
|
|
862
|
+
d *= 2;
|
|
863
|
+
if (d > 9) d -= 9;
|
|
864
|
+
}
|
|
865
|
+
sum += d;
|
|
866
|
+
shouldDouble = !shouldDouble;
|
|
867
|
+
}
|
|
868
|
+
return sum % 10 === 0;
|
|
869
|
+
}
|
|
870
|
+
function detectCardNetwork(digits) {
|
|
871
|
+
for (const rule of CARD_NETWORK_RULES) {
|
|
872
|
+
if (rule.lengths.includes(digits.length) && rule.test(digits)) return rule.name;
|
|
873
|
+
}
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
function formatCardNumber(digits, network) {
|
|
877
|
+
if (network === "American Express") {
|
|
878
|
+
return `${digits.slice(0, 4)} ${digits.slice(4, 10)} ${digits.slice(10)}`.trim();
|
|
879
|
+
}
|
|
880
|
+
return digits.match(/.{1,4}/g)?.join(" ") ?? digits;
|
|
881
|
+
}
|
|
882
|
+
function validateCardNumber(input) {
|
|
883
|
+
if (!input || !input.trim()) return { error: "Input is empty" };
|
|
884
|
+
const digits = input.replace(/[\s-]/g, "");
|
|
885
|
+
if (!/^\d+$/.test(digits)) return { error: "Card number must contain only digits, spaces, or hyphens" };
|
|
886
|
+
if (digits.length < 12 || digits.length > 19) {
|
|
887
|
+
return { error: `Card number length (${digits.length}) is outside the valid range of 12-19 digits` };
|
|
888
|
+
}
|
|
889
|
+
const valid = luhnCheck(digits);
|
|
890
|
+
const network = detectCardNetwork(digits);
|
|
891
|
+
const formatted = formatCardNumber(digits, network);
|
|
892
|
+
return { valid, network, length: digits.length, formatted };
|
|
893
|
+
}
|
|
894
|
+
var IBAN_COUNTRY_LENGTHS = {
|
|
895
|
+
AD: 24,
|
|
896
|
+
AE: 23,
|
|
897
|
+
AL: 28,
|
|
898
|
+
AT: 20,
|
|
899
|
+
AZ: 28,
|
|
900
|
+
BA: 20,
|
|
901
|
+
BE: 16,
|
|
902
|
+
BG: 22,
|
|
903
|
+
BH: 22,
|
|
904
|
+
BR: 29,
|
|
905
|
+
BY: 28,
|
|
906
|
+
CH: 21,
|
|
907
|
+
CR: 22,
|
|
908
|
+
CY: 28,
|
|
909
|
+
CZ: 24,
|
|
910
|
+
DE: 22,
|
|
911
|
+
DK: 18,
|
|
912
|
+
DO: 28,
|
|
913
|
+
EE: 20,
|
|
914
|
+
EG: 29,
|
|
915
|
+
ES: 24,
|
|
916
|
+
FI: 18,
|
|
917
|
+
FO: 18,
|
|
918
|
+
FR: 27,
|
|
919
|
+
GB: 22,
|
|
920
|
+
GE: 22,
|
|
921
|
+
GI: 23,
|
|
922
|
+
GL: 18,
|
|
923
|
+
GR: 27,
|
|
924
|
+
GT: 28,
|
|
925
|
+
HR: 21,
|
|
926
|
+
HU: 28,
|
|
927
|
+
IE: 22,
|
|
928
|
+
IL: 23,
|
|
929
|
+
IQ: 23,
|
|
930
|
+
IS: 26,
|
|
931
|
+
IT: 27,
|
|
932
|
+
JO: 30,
|
|
933
|
+
KW: 30,
|
|
934
|
+
KZ: 20,
|
|
935
|
+
LB: 28,
|
|
936
|
+
LC: 32,
|
|
937
|
+
LI: 21,
|
|
938
|
+
LT: 20,
|
|
939
|
+
LU: 20,
|
|
940
|
+
LV: 21,
|
|
941
|
+
LY: 25,
|
|
942
|
+
MC: 27,
|
|
943
|
+
MD: 24,
|
|
944
|
+
ME: 22,
|
|
945
|
+
MK: 19,
|
|
946
|
+
MR: 27,
|
|
947
|
+
MT: 31,
|
|
948
|
+
MU: 30,
|
|
949
|
+
NL: 18,
|
|
950
|
+
NO: 15,
|
|
951
|
+
PK: 24,
|
|
952
|
+
PL: 28,
|
|
953
|
+
PS: 29,
|
|
954
|
+
PT: 25,
|
|
955
|
+
QA: 29,
|
|
956
|
+
RO: 24,
|
|
957
|
+
RS: 22,
|
|
958
|
+
SA: 24,
|
|
959
|
+
SC: 31,
|
|
960
|
+
SE: 24,
|
|
961
|
+
SI: 19,
|
|
962
|
+
SK: 24,
|
|
963
|
+
SM: 27,
|
|
964
|
+
ST: 25,
|
|
965
|
+
SV: 28,
|
|
966
|
+
TL: 23,
|
|
967
|
+
TN: 24,
|
|
968
|
+
TR: 26,
|
|
969
|
+
UA: 29,
|
|
970
|
+
VA: 22,
|
|
971
|
+
VG: 24,
|
|
972
|
+
XK: 20
|
|
973
|
+
};
|
|
974
|
+
function ibanMod97(numeric) {
|
|
975
|
+
let remainder = 0;
|
|
976
|
+
for (let i = 0; i < numeric.length; i += 7) {
|
|
977
|
+
remainder = parseInt(String(remainder) + numeric.substr(i, 7), 10) % 97;
|
|
978
|
+
}
|
|
979
|
+
return remainder;
|
|
980
|
+
}
|
|
981
|
+
function formatIban(cleaned) {
|
|
982
|
+
return cleaned.match(/.{1,4}/g)?.join(" ") ?? cleaned;
|
|
983
|
+
}
|
|
984
|
+
function validateIban(input) {
|
|
985
|
+
if (!input || !input.trim()) return { error: "Input is empty" };
|
|
986
|
+
const cleaned = input.replace(/\s/g, "").toUpperCase();
|
|
987
|
+
if (!/^[A-Z0-9]+$/.test(cleaned)) return { error: "IBAN must contain only letters and digits" };
|
|
988
|
+
if (cleaned.length < 4 || cleaned.length > 34) {
|
|
989
|
+
return { error: `IBAN length (${cleaned.length}) is outside the valid range of 4-34 characters` };
|
|
990
|
+
}
|
|
991
|
+
if (!/^[A-Z]{2}\d{2}/.test(cleaned)) {
|
|
992
|
+
return { error: "IBAN must start with a 2-letter country code followed by 2 check digits" };
|
|
993
|
+
}
|
|
994
|
+
const countryCode = cleaned.slice(0, 2);
|
|
995
|
+
const checkDigits = cleaned.slice(2, 4);
|
|
996
|
+
const bban = cleaned.slice(4);
|
|
997
|
+
const rearranged = cleaned.slice(4) + cleaned.slice(0, 4);
|
|
998
|
+
const numeric = rearranged.split("").map((ch) => /[A-Z]/.test(ch) ? String(ch.charCodeAt(0) - 55) : ch).join("");
|
|
999
|
+
const checksumValid = ibanMod97(numeric) === 1;
|
|
1000
|
+
const expectedLength = IBAN_COUNTRY_LENGTHS[countryCode] ?? null;
|
|
1001
|
+
const lengthValid = expectedLength === null ? null : cleaned.length === expectedLength;
|
|
1002
|
+
const valid = checksumValid && lengthValid !== false;
|
|
1003
|
+
return {
|
|
1004
|
+
valid,
|
|
1005
|
+
formatted: formatIban(cleaned),
|
|
1006
|
+
countryCode,
|
|
1007
|
+
checkDigits,
|
|
1008
|
+
bban,
|
|
1009
|
+
length: cleaned.length,
|
|
1010
|
+
expectedLength,
|
|
1011
|
+
checksumValid,
|
|
1012
|
+
lengthValid
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
function round2(n) {
|
|
1016
|
+
return Math.round(n * 100) / 100;
|
|
1017
|
+
}
|
|
1018
|
+
function calculateLoan(principal, annualRatePercent, termMonths) {
|
|
1019
|
+
if (!Number.isFinite(principal) || principal <= 0) return { error: "Principal must be a positive number" };
|
|
1020
|
+
if (!Number.isFinite(annualRatePercent) || annualRatePercent < 0) {
|
|
1021
|
+
return { error: "Annual interest rate must be zero or a positive number" };
|
|
1022
|
+
}
|
|
1023
|
+
if (!Number.isInteger(termMonths) || termMonths <= 0) {
|
|
1024
|
+
return { error: "Term must be a positive whole number of months" };
|
|
1025
|
+
}
|
|
1026
|
+
const monthlyRate = annualRatePercent / 100 / 12;
|
|
1027
|
+
let monthlyPayment;
|
|
1028
|
+
if (monthlyRate === 0) {
|
|
1029
|
+
monthlyPayment = principal / termMonths;
|
|
1030
|
+
} else {
|
|
1031
|
+
const factor = Math.pow(1 + monthlyRate, termMonths);
|
|
1032
|
+
monthlyPayment = principal * monthlyRate * factor / (factor - 1);
|
|
1033
|
+
}
|
|
1034
|
+
const schedule = [];
|
|
1035
|
+
let balance = round2(principal);
|
|
1036
|
+
let totalPayment = 0;
|
|
1037
|
+
for (let month = 1; month <= termMonths; month++) {
|
|
1038
|
+
const interest = monthlyRate === 0 ? 0 : round2(balance * monthlyRate);
|
|
1039
|
+
let principalPortion = round2(monthlyPayment) - interest;
|
|
1040
|
+
if (month === termMonths || principalPortion > balance) principalPortion = balance;
|
|
1041
|
+
const payment = round2(principalPortion + interest);
|
|
1042
|
+
balance = round2(balance - principalPortion);
|
|
1043
|
+
totalPayment += payment;
|
|
1044
|
+
schedule.push({ month, payment, principal: round2(principalPortion), interest, balance: Math.max(balance, 0) });
|
|
1045
|
+
}
|
|
1046
|
+
return {
|
|
1047
|
+
monthlyPayment: round2(monthlyPayment),
|
|
1048
|
+
totalPayment: round2(totalPayment),
|
|
1049
|
+
totalInterest: round2(totalPayment - principal),
|
|
1050
|
+
termMonths,
|
|
1051
|
+
schedule
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
834
1054
|
|
|
835
1055
|
exports.BASE_LABELS = BASE_LABELS;
|
|
836
1056
|
exports.BASE_PREFIXES = BASE_PREFIXES;
|
|
@@ -845,6 +1065,7 @@ exports.autoFormat = autoFormat;
|
|
|
845
1065
|
exports.bumpVersion = bumpVersion;
|
|
846
1066
|
exports.calcAspectRatio = calcAspectRatio;
|
|
847
1067
|
exports.calcSubnet = calcSubnet;
|
|
1068
|
+
exports.calculateLoan = calculateLoan;
|
|
848
1069
|
exports.compareSemver = compareSemver;
|
|
849
1070
|
exports.convert = convert;
|
|
850
1071
|
exports.convertBytes = convertBytes;
|
|
@@ -889,4 +1110,6 @@ exports.scaleByWidth = scaleByWidth;
|
|
|
889
1110
|
exports.sortVersions = sortVersions;
|
|
890
1111
|
exports.splitSubnet = splitSubnet;
|
|
891
1112
|
exports.symbolicToPermissions = symbolicToPermissions;
|
|
1113
|
+
exports.validateCardNumber = validateCardNumber;
|
|
1114
|
+
exports.validateIban = validateIban;
|
|
892
1115
|
exports.viewportToPx = viewportToPx;
|
package/dist/tools/units.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AspectRatioResult, B as BASE_LABELS,
|
|
1
|
+
export { A as AmortizationRow, a as AspectRatioResult, B as BASE_LABELS, b as BASE_PREFIXES, c as BYTE_UNITS, d as BaseConvertResult, e as ByteConvertResult, f as ByteUnit, C as COMMON_CURRENCIES, g as COMMON_LOCALES, h as COMMON_PERMISSIONS, i as COMMON_RATIOS, j as COMMON_SIZES, k as COMMON_VIEWPORTS, l as CardValidationResult, D as Dimensions, F as FilePermissions, m as FormatOptions, I as IbanValidationResult, n as IpConversion, L as LoanResult, N as NotationStyle, o as NumberBase, P as Permission, p as PxConvertResult, S as SemverVersion, q as SubnetInfo, V as ViewportConvertResult, r as autoFormat, s as bumpVersion, t as calcAspectRatio, v as calcSubnet, w as calculateLoan, x as compareSemver, y as convert, z as convertBytes, E as convertIp, G as coverBox, H as decimalToIp, J as decimalToIpCidr, K as describePermissions, M as fitIntoBox, O as formatNumber, Q as formatValue, R as formatVwValue, T as formatWithSeparator, U as gcd, W as ipFromBinary, X as ipFromDecimal, Y as ipFromHex, Z as ipToBinary, _ as ipToDecimal, $ as ipToDecimalCidr, a0 as ipToHex, a1 as ipToOctal, a2 as isValid, a3 as isValidCidr, a4 as isValidIp, a5 as isValidIpv4, a6 as octalToPermissions, a7 as parseFileSize, a8 as parseInput, a9 as parseNumberString, aa as parseSemver, ab as permissionsToChmod, ac as permissionsToOctal, ad as permissionsToSymbolic, ae as ptToPx, af as pxToAll, ag as pxToViewport, ah as remToPx, ai as satisfiesRange, aj as scaleByHeight, ak as scaleByWidth, al as sortVersions, am as splitSubnet, an as symbolicToPermissions, ao as validateCardNumber, ap as validateIban, aq as viewportToPx } from '../units-BG387sch.cjs';
|
package/dist/tools/units.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AspectRatioResult, B as BASE_LABELS,
|
|
1
|
+
export { A as AmortizationRow, a as AspectRatioResult, B as BASE_LABELS, b as BASE_PREFIXES, c as BYTE_UNITS, d as BaseConvertResult, e as ByteConvertResult, f as ByteUnit, C as COMMON_CURRENCIES, g as COMMON_LOCALES, h as COMMON_PERMISSIONS, i as COMMON_RATIOS, j as COMMON_SIZES, k as COMMON_VIEWPORTS, l as CardValidationResult, D as Dimensions, F as FilePermissions, m as FormatOptions, I as IbanValidationResult, n as IpConversion, L as LoanResult, N as NotationStyle, o as NumberBase, P as Permission, p as PxConvertResult, S as SemverVersion, q as SubnetInfo, V as ViewportConvertResult, r as autoFormat, s as bumpVersion, t as calcAspectRatio, v as calcSubnet, w as calculateLoan, x as compareSemver, y as convert, z as convertBytes, E as convertIp, G as coverBox, H as decimalToIp, J as decimalToIpCidr, K as describePermissions, M as fitIntoBox, O as formatNumber, Q as formatValue, R as formatVwValue, T as formatWithSeparator, U as gcd, W as ipFromBinary, X as ipFromDecimal, Y as ipFromHex, Z as ipToBinary, _ as ipToDecimal, $ as ipToDecimalCidr, a0 as ipToHex, a1 as ipToOctal, a2 as isValid, a3 as isValidCidr, a4 as isValidIp, a5 as isValidIpv4, a6 as octalToPermissions, a7 as parseFileSize, a8 as parseInput, a9 as parseNumberString, aa as parseSemver, ab as permissionsToChmod, ac as permissionsToOctal, ad as permissionsToSymbolic, ae as ptToPx, af as pxToAll, ag as pxToViewport, ah as remToPx, ai as satisfiesRange, aj as scaleByHeight, ak as scaleByWidth, al as sortVersions, am as splitSubnet, an as symbolicToPermissions, ao as validateCardNumber, ap as validateIban, aq as viewportToPx } from '../units-BG387sch.js';
|
package/dist/tools/units.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_VIEWPORTS, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, compareSemver, convert, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, viewportToPx } from '../chunk-
|
|
1
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_VIEWPORTS, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateLoan, compareSemver, convert, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateCardNumber, validateIban, viewportToPx } from '../chunk-GGDDCTFM.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* - ip-converter : convertIp, isValidIpv4, ipToDecimal, decimalToIp, ipToHex, ipToBinary, ipToOctal, ipFromHex, ipFromBinary, ipFromDecimal
|
|
13
13
|
* - cidr-calc : calcSubnet, splitSubnet, isValidCidr, isValidIp, ipToDecimal (cidr), decimalToIp (cidr)
|
|
14
14
|
* - semver : parseSemver, isValid, compareSemver, satisfiesRange, bumpVersion, sortVersions
|
|
15
|
+
* - credit-card-validator : validateCardNumber
|
|
16
|
+
* - iban-validator : validateIban
|
|
17
|
+
* - loan-calculator : calculateLoan
|
|
15
18
|
*/
|
|
16
19
|
interface PxConvertResult {
|
|
17
20
|
px: number;
|
|
@@ -221,7 +224,63 @@ declare function bumpVersion(version: string, bump: "major" | "minor" | "patch")
|
|
|
221
224
|
error: string;
|
|
222
225
|
};
|
|
223
226
|
declare function sortVersions(versions: string[], order?: "asc" | "desc"): string[];
|
|
227
|
+
interface CardValidationResult {
|
|
228
|
+
valid: boolean;
|
|
229
|
+
network: string | null;
|
|
230
|
+
length: number;
|
|
231
|
+
formatted: string;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Validate a credit card number via the Luhn checksum and detect its
|
|
235
|
+
* network (issuer) from the number's prefix and length. No card data is
|
|
236
|
+
* ever stored or transmitted.
|
|
237
|
+
*/
|
|
238
|
+
declare function validateCardNumber(input: string): CardValidationResult | {
|
|
239
|
+
error: string;
|
|
240
|
+
};
|
|
241
|
+
interface IbanValidationResult {
|
|
242
|
+
valid: boolean;
|
|
243
|
+
formatted: string;
|
|
244
|
+
countryCode: string;
|
|
245
|
+
checkDigits: string;
|
|
246
|
+
bban: string;
|
|
247
|
+
length: number;
|
|
248
|
+
expectedLength: number | null;
|
|
249
|
+
checksumValid: boolean;
|
|
250
|
+
lengthValid: boolean | null;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Validate an IBAN via the mod-97 checksum defined by ISO 13616 and format
|
|
254
|
+
* it into the standard human-readable grouped form. Also cross-checks the
|
|
255
|
+
* total length against the country's registered fixed length where known.
|
|
256
|
+
*/
|
|
257
|
+
declare function validateIban(input: string): IbanValidationResult | {
|
|
258
|
+
error: string;
|
|
259
|
+
};
|
|
260
|
+
interface AmortizationRow {
|
|
261
|
+
month: number;
|
|
262
|
+
payment: number;
|
|
263
|
+
principal: number;
|
|
264
|
+
interest: number;
|
|
265
|
+
balance: number;
|
|
266
|
+
}
|
|
267
|
+
interface LoanResult {
|
|
268
|
+
monthlyPayment: number;
|
|
269
|
+
totalPayment: number;
|
|
270
|
+
totalInterest: number;
|
|
271
|
+
termMonths: number;
|
|
272
|
+
schedule: AmortizationRow[];
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Compute the monthly payment, total interest, and full amortization
|
|
276
|
+
* schedule for a fixed-rate loan or mortgage, given the principal, annual
|
|
277
|
+
* interest rate (as a percent, e.g. 6.5), and term in months.
|
|
278
|
+
*/
|
|
279
|
+
declare function calculateLoan(principal: number, annualRatePercent: number, termMonths: number): LoanResult | {
|
|
280
|
+
error: string;
|
|
281
|
+
};
|
|
224
282
|
|
|
283
|
+
type units_AmortizationRow = AmortizationRow;
|
|
225
284
|
type units_AspectRatioResult = AspectRatioResult;
|
|
226
285
|
declare const units_BASE_LABELS: typeof BASE_LABELS;
|
|
227
286
|
declare const units_BASE_PREFIXES: typeof BASE_PREFIXES;
|
|
@@ -235,10 +294,13 @@ declare const units_COMMON_PERMISSIONS: typeof COMMON_PERMISSIONS;
|
|
|
235
294
|
declare const units_COMMON_RATIOS: typeof COMMON_RATIOS;
|
|
236
295
|
declare const units_COMMON_SIZES: typeof COMMON_SIZES;
|
|
237
296
|
declare const units_COMMON_VIEWPORTS: typeof COMMON_VIEWPORTS;
|
|
297
|
+
type units_CardValidationResult = CardValidationResult;
|
|
238
298
|
type units_Dimensions = Dimensions;
|
|
239
299
|
type units_FilePermissions = FilePermissions;
|
|
240
300
|
type units_FormatOptions = FormatOptions;
|
|
301
|
+
type units_IbanValidationResult = IbanValidationResult;
|
|
241
302
|
type units_IpConversion = IpConversion;
|
|
303
|
+
type units_LoanResult = LoanResult;
|
|
242
304
|
type units_NotationStyle = NotationStyle;
|
|
243
305
|
type units_NumberBase = NumberBase;
|
|
244
306
|
type units_Permission = Permission;
|
|
@@ -250,6 +312,7 @@ declare const units_autoFormat: typeof autoFormat;
|
|
|
250
312
|
declare const units_bumpVersion: typeof bumpVersion;
|
|
251
313
|
declare const units_calcAspectRatio: typeof calcAspectRatio;
|
|
252
314
|
declare const units_calcSubnet: typeof calcSubnet;
|
|
315
|
+
declare const units_calculateLoan: typeof calculateLoan;
|
|
253
316
|
declare const units_compareSemver: typeof compareSemver;
|
|
254
317
|
declare const units_convert: typeof convert;
|
|
255
318
|
declare const units_convertBytes: typeof convertBytes;
|
|
@@ -294,9 +357,11 @@ declare const units_scaleByWidth: typeof scaleByWidth;
|
|
|
294
357
|
declare const units_sortVersions: typeof sortVersions;
|
|
295
358
|
declare const units_splitSubnet: typeof splitSubnet;
|
|
296
359
|
declare const units_symbolicToPermissions: typeof symbolicToPermissions;
|
|
360
|
+
declare const units_validateCardNumber: typeof validateCardNumber;
|
|
361
|
+
declare const units_validateIban: typeof validateIban;
|
|
297
362
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
298
363
|
declare namespace units {
|
|
299
|
-
export { type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BaseConvertResult as BaseConvertResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_Dimensions as Dimensions, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IpConversion as IpConversion, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_SemverVersion as SemverVersion, type units_SubnetInfo as SubnetInfo, type units_ViewportConvertResult as ViewportConvertResult, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_compareSemver as compareSemver, units_convert as convert, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_viewportToPx as viewportToPx };
|
|
364
|
+
export { type units_AmortizationRow as AmortizationRow, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BaseConvertResult as BaseConvertResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_Dimensions as Dimensions, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_LoanResult as LoanResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_SemverVersion as SemverVersion, type units_SubnetInfo as SubnetInfo, type units_ViewportConvertResult as ViewportConvertResult, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateLoan as calculateLoan, units_compareSemver as compareSemver, units_convert as convert, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_viewportToPx as viewportToPx };
|
|
300
365
|
}
|
|
301
366
|
|
|
302
|
-
export {
|
|
367
|
+
export { ipToDecimalCidr as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type Dimensions as D, convertIp as E, type FilePermissions as F, coverBox as G, decimalToIp as H, type IbanValidationResult as I, decimalToIpCidr as J, describePermissions as K, type LoanResult as L, fitIntoBox as M, type NotationStyle as N, formatNumber as O, type Permission as P, formatValue as Q, formatVwValue as R, type SemverVersion as S, formatWithSeparator as T, gcd as U, type ViewportConvertResult as V, ipFromBinary as W, ipFromDecimal as X, ipFromHex as Y, ipToBinary as Z, ipToDecimal as _, type AspectRatioResult as a, ipToHex as a0, ipToOctal as a1, isValid as a2, isValidCidr as a3, isValidIp as a4, isValidIpv4 as a5, octalToPermissions as a6, parseFileSize as a7, parseInput as a8, parseNumberString as a9, parseSemver as aa, permissionsToChmod as ab, permissionsToOctal as ac, permissionsToSymbolic as ad, ptToPx as ae, pxToAll as af, pxToViewport as ag, remToPx as ah, satisfiesRange as ai, scaleByHeight as aj, scaleByWidth as ak, sortVersions as al, splitSubnet as am, symbolicToPermissions as an, validateCardNumber as ao, validateIban as ap, viewportToPx as aq, BASE_PREFIXES as b, BYTE_UNITS as c, type BaseConvertResult as d, type ByteConvertResult as e, type ByteUnit as f, COMMON_LOCALES as g, COMMON_PERMISSIONS as h, COMMON_RATIOS as i, COMMON_SIZES as j, COMMON_VIEWPORTS as k, type CardValidationResult as l, type FormatOptions as m, type IpConversion as n, type NumberBase as o, type PxConvertResult as p, type SubnetInfo as q, autoFormat as r, bumpVersion as s, calcAspectRatio as t, units as u, calcSubnet as v, calculateLoan as w, compareSemver as x, convert as y, convertBytes as z };
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* - ip-converter : convertIp, isValidIpv4, ipToDecimal, decimalToIp, ipToHex, ipToBinary, ipToOctal, ipFromHex, ipFromBinary, ipFromDecimal
|
|
13
13
|
* - cidr-calc : calcSubnet, splitSubnet, isValidCidr, isValidIp, ipToDecimal (cidr), decimalToIp (cidr)
|
|
14
14
|
* - semver : parseSemver, isValid, compareSemver, satisfiesRange, bumpVersion, sortVersions
|
|
15
|
+
* - credit-card-validator : validateCardNumber
|
|
16
|
+
* - iban-validator : validateIban
|
|
17
|
+
* - loan-calculator : calculateLoan
|
|
15
18
|
*/
|
|
16
19
|
interface PxConvertResult {
|
|
17
20
|
px: number;
|
|
@@ -221,7 +224,63 @@ declare function bumpVersion(version: string, bump: "major" | "minor" | "patch")
|
|
|
221
224
|
error: string;
|
|
222
225
|
};
|
|
223
226
|
declare function sortVersions(versions: string[], order?: "asc" | "desc"): string[];
|
|
227
|
+
interface CardValidationResult {
|
|
228
|
+
valid: boolean;
|
|
229
|
+
network: string | null;
|
|
230
|
+
length: number;
|
|
231
|
+
formatted: string;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Validate a credit card number via the Luhn checksum and detect its
|
|
235
|
+
* network (issuer) from the number's prefix and length. No card data is
|
|
236
|
+
* ever stored or transmitted.
|
|
237
|
+
*/
|
|
238
|
+
declare function validateCardNumber(input: string): CardValidationResult | {
|
|
239
|
+
error: string;
|
|
240
|
+
};
|
|
241
|
+
interface IbanValidationResult {
|
|
242
|
+
valid: boolean;
|
|
243
|
+
formatted: string;
|
|
244
|
+
countryCode: string;
|
|
245
|
+
checkDigits: string;
|
|
246
|
+
bban: string;
|
|
247
|
+
length: number;
|
|
248
|
+
expectedLength: number | null;
|
|
249
|
+
checksumValid: boolean;
|
|
250
|
+
lengthValid: boolean | null;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Validate an IBAN via the mod-97 checksum defined by ISO 13616 and format
|
|
254
|
+
* it into the standard human-readable grouped form. Also cross-checks the
|
|
255
|
+
* total length against the country's registered fixed length where known.
|
|
256
|
+
*/
|
|
257
|
+
declare function validateIban(input: string): IbanValidationResult | {
|
|
258
|
+
error: string;
|
|
259
|
+
};
|
|
260
|
+
interface AmortizationRow {
|
|
261
|
+
month: number;
|
|
262
|
+
payment: number;
|
|
263
|
+
principal: number;
|
|
264
|
+
interest: number;
|
|
265
|
+
balance: number;
|
|
266
|
+
}
|
|
267
|
+
interface LoanResult {
|
|
268
|
+
monthlyPayment: number;
|
|
269
|
+
totalPayment: number;
|
|
270
|
+
totalInterest: number;
|
|
271
|
+
termMonths: number;
|
|
272
|
+
schedule: AmortizationRow[];
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Compute the monthly payment, total interest, and full amortization
|
|
276
|
+
* schedule for a fixed-rate loan or mortgage, given the principal, annual
|
|
277
|
+
* interest rate (as a percent, e.g. 6.5), and term in months.
|
|
278
|
+
*/
|
|
279
|
+
declare function calculateLoan(principal: number, annualRatePercent: number, termMonths: number): LoanResult | {
|
|
280
|
+
error: string;
|
|
281
|
+
};
|
|
224
282
|
|
|
283
|
+
type units_AmortizationRow = AmortizationRow;
|
|
225
284
|
type units_AspectRatioResult = AspectRatioResult;
|
|
226
285
|
declare const units_BASE_LABELS: typeof BASE_LABELS;
|
|
227
286
|
declare const units_BASE_PREFIXES: typeof BASE_PREFIXES;
|
|
@@ -235,10 +294,13 @@ declare const units_COMMON_PERMISSIONS: typeof COMMON_PERMISSIONS;
|
|
|
235
294
|
declare const units_COMMON_RATIOS: typeof COMMON_RATIOS;
|
|
236
295
|
declare const units_COMMON_SIZES: typeof COMMON_SIZES;
|
|
237
296
|
declare const units_COMMON_VIEWPORTS: typeof COMMON_VIEWPORTS;
|
|
297
|
+
type units_CardValidationResult = CardValidationResult;
|
|
238
298
|
type units_Dimensions = Dimensions;
|
|
239
299
|
type units_FilePermissions = FilePermissions;
|
|
240
300
|
type units_FormatOptions = FormatOptions;
|
|
301
|
+
type units_IbanValidationResult = IbanValidationResult;
|
|
241
302
|
type units_IpConversion = IpConversion;
|
|
303
|
+
type units_LoanResult = LoanResult;
|
|
242
304
|
type units_NotationStyle = NotationStyle;
|
|
243
305
|
type units_NumberBase = NumberBase;
|
|
244
306
|
type units_Permission = Permission;
|
|
@@ -250,6 +312,7 @@ declare const units_autoFormat: typeof autoFormat;
|
|
|
250
312
|
declare const units_bumpVersion: typeof bumpVersion;
|
|
251
313
|
declare const units_calcAspectRatio: typeof calcAspectRatio;
|
|
252
314
|
declare const units_calcSubnet: typeof calcSubnet;
|
|
315
|
+
declare const units_calculateLoan: typeof calculateLoan;
|
|
253
316
|
declare const units_compareSemver: typeof compareSemver;
|
|
254
317
|
declare const units_convert: typeof convert;
|
|
255
318
|
declare const units_convertBytes: typeof convertBytes;
|
|
@@ -294,9 +357,11 @@ declare const units_scaleByWidth: typeof scaleByWidth;
|
|
|
294
357
|
declare const units_sortVersions: typeof sortVersions;
|
|
295
358
|
declare const units_splitSubnet: typeof splitSubnet;
|
|
296
359
|
declare const units_symbolicToPermissions: typeof symbolicToPermissions;
|
|
360
|
+
declare const units_validateCardNumber: typeof validateCardNumber;
|
|
361
|
+
declare const units_validateIban: typeof validateIban;
|
|
297
362
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
298
363
|
declare namespace units {
|
|
299
|
-
export { type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BaseConvertResult as BaseConvertResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_Dimensions as Dimensions, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IpConversion as IpConversion, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_SemverVersion as SemverVersion, type units_SubnetInfo as SubnetInfo, type units_ViewportConvertResult as ViewportConvertResult, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_compareSemver as compareSemver, units_convert as convert, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_viewportToPx as viewportToPx };
|
|
364
|
+
export { type units_AmortizationRow as AmortizationRow, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BaseConvertResult as BaseConvertResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_Dimensions as Dimensions, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_LoanResult as LoanResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_SemverVersion as SemverVersion, type units_SubnetInfo as SubnetInfo, type units_ViewportConvertResult as ViewportConvertResult, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateLoan as calculateLoan, units_compareSemver as compareSemver, units_convert as convert, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_viewportToPx as viewportToPx };
|
|
300
365
|
}
|
|
301
366
|
|
|
302
|
-
export {
|
|
367
|
+
export { ipToDecimalCidr as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type Dimensions as D, convertIp as E, type FilePermissions as F, coverBox as G, decimalToIp as H, type IbanValidationResult as I, decimalToIpCidr as J, describePermissions as K, type LoanResult as L, fitIntoBox as M, type NotationStyle as N, formatNumber as O, type Permission as P, formatValue as Q, formatVwValue as R, type SemverVersion as S, formatWithSeparator as T, gcd as U, type ViewportConvertResult as V, ipFromBinary as W, ipFromDecimal as X, ipFromHex as Y, ipToBinary as Z, ipToDecimal as _, type AspectRatioResult as a, ipToHex as a0, ipToOctal as a1, isValid as a2, isValidCidr as a3, isValidIp as a4, isValidIpv4 as a5, octalToPermissions as a6, parseFileSize as a7, parseInput as a8, parseNumberString as a9, parseSemver as aa, permissionsToChmod as ab, permissionsToOctal as ac, permissionsToSymbolic as ad, ptToPx as ae, pxToAll as af, pxToViewport as ag, remToPx as ah, satisfiesRange as ai, scaleByHeight as aj, scaleByWidth as ak, sortVersions as al, splitSubnet as am, symbolicToPermissions as an, validateCardNumber as ao, validateIban as ap, viewportToPx as aq, BASE_PREFIXES as b, BYTE_UNITS as c, type BaseConvertResult as d, type ByteConvertResult as e, type ByteUnit as f, COMMON_LOCALES as g, COMMON_PERMISSIONS as h, COMMON_RATIOS as i, COMMON_SIZES as j, COMMON_VIEWPORTS as k, type CardValidationResult as l, type FormatOptions as m, type IpConversion as n, type NumberBase as o, type PxConvertResult as p, type SubnetInfo as q, autoFormat as r, bumpVersion as s, calcAspectRatio as t, units as u, calcSubnet as v, calculateLoan as w, compareSemver as x, convert as y, convertBytes as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
|
|
5
5
|
"author": "Utilix <hello@utilix.tech>",
|
|
6
6
|
"license": "MIT",
|