@utilix-tech/sdk 0.98.0 → 0.99.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 +4 -0
- package/README.md +11 -1
- package/dist/{chunk-PET2CGTH.js → chunk-3BFKPP5R.js} +90 -1
- package/dist/{chunk-X7IZ2OXW.js → chunk-3LHLFKP7.js} +27 -1
- package/dist/{hashing-CJjlvqS_.d.cts → hashing-D2VIYoFn.d.cts} +32 -2
- package/dist/{hashing-CJjlvqS_.d.ts → hashing-D2VIYoFn.d.ts} +32 -2
- package/dist/index.cjs +115 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/tools/hashing.cjs +89 -0
- package/dist/tools/hashing.d.cts +1 -1
- package/dist/tools/hashing.d.ts +1 -1
- package/dist/tools/hashing.js +1 -1
- package/dist/tools/units.cjs +26 -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-CGTx1S6B.d.cts → units-CmkM7-WZ.d.cts} +30 -2
- package/dist/{units-CGTx1S6B.d.ts → units-CmkM7-WZ.d.ts} +30 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
|
|
4
4
|
|
|
5
|
+
## 0.99.0
|
|
6
|
+
- Add `calculateDividendYield` (dividend-yield-calculator): compute a stock's dividend yield from annual dividend per share and share price, plus payout ratio and retention ratio when trailing EPS is given.
|
|
7
|
+
- Add `checkKnownHostsFingerprints` (ssh-known-hosts-fingerprint-checker): compute SHA256/MD5 fingerprints for ssh_known_hosts entries the way `ssh-keygen -lf` does, decoding key type and RSA bit length to flag weak or deprecated keys.
|
|
8
|
+
|
|
5
9
|
## 0.98.0
|
|
6
10
|
- Add `convertTimecode` (timecode-converter): convert between a frame count, SMPTE timecode (HH:MM:SS:FF), and seconds at a given frame rate, handling NTSC drop-frame timecode's skipped frame numbers correctly.
|
|
7
11
|
- Add `validateGeoJson` (geojson-validator): validate a GeoJSON document against RFC 7946's structural rules, geometry type/coordinates shape, polygon ring closure and winding, and a FeatureCollection's required fields.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/sdk
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**750 developer utility functions for Node.js: runs locally, no API key required.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
6
6
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
@@ -810,6 +810,16 @@ calculatePositionSize({ accountSize: 10000, riskPercent: 1, entryPrice: 50, stop
|
|
|
810
810
|
import { detectWeaselWords } from "@utilix-tech/sdk/text";
|
|
811
811
|
detectWeaselWords("Studies show that many experts believe this works.");
|
|
812
812
|
// { totalWords: 8, totalMatches: 2, density: 25, matches: [{ phrase: "many experts believe", count: 1, indices: [...] }, { phrase: "studies show", count: 1, indices: [...] }] }
|
|
813
|
+
|
|
814
|
+
// Dividend yield from annual dividend/share price, plus payout + retention ratio if EPS is given
|
|
815
|
+
import { calculateDividendYield } from "@utilix-tech/sdk/units";
|
|
816
|
+
calculateDividendYield({ annualDividendPerShare: 2, sharePrice: 100, epsPerShare: 5 });
|
|
817
|
+
// { dividendYieldPercent: 2, payoutRatioPercent: 40, retentionRatioPercent: 60, ... }
|
|
818
|
+
|
|
819
|
+
// SSH known_hosts SHA256/MD5 fingerprints (matches `ssh-keygen -lf`), flags weak RSA/ssh-dss keys
|
|
820
|
+
import { checkKnownHostsFingerprints } from "@utilix-tech/sdk/hashing";
|
|
821
|
+
checkKnownHostsFingerprints("example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPgoxEP6yy3WPraZXnSJFc9Ly5tby6R7TVyMeAOuYORR");
|
|
822
|
+
// { entries: [{ host: "example.com", keyType: "ssh-ed25519", fingerprintSha256: "SHA256:...", fingerprintMd5: "MD5:...", bits: 256, weak: false }] }
|
|
813
823
|
```
|
|
814
824
|
|
|
815
825
|
---
|
|
@@ -11,6 +11,7 @@ __export(hashing_exports, {
|
|
|
11
11
|
HASH_BITS: () => HASH_BITS,
|
|
12
12
|
ROUND_OPTIONS: () => ROUND_OPTIONS,
|
|
13
13
|
SRI_ALGORITHMS: () => SRI_ALGORITHMS,
|
|
14
|
+
checkKnownHostsFingerprints: () => checkKnownHostsFingerprints,
|
|
14
15
|
createEntry: () => createEntry,
|
|
15
16
|
generateBcryptHash: () => generateBcryptHash,
|
|
16
17
|
generateEtag: () => generateEtag,
|
|
@@ -292,5 +293,93 @@ function generateEtag(content, algorithm = "SHA-1", weak = false) {
|
|
|
292
293
|
const etag = weak ? `W/${quoted}` : quoted;
|
|
293
294
|
return { algorithm, weak, hash, etag, headerName: "ETag", snippet: `ETag: ${etag}` };
|
|
294
295
|
}
|
|
296
|
+
function _readSshString(buf, offset) {
|
|
297
|
+
if (offset + 4 > buf.length) return null;
|
|
298
|
+
const len = buf.readUInt32BE(offset);
|
|
299
|
+
const start = offset + 4;
|
|
300
|
+
const end = start + len;
|
|
301
|
+
if (end > buf.length) return null;
|
|
302
|
+
return { value: buf.subarray(start, end), next: end };
|
|
303
|
+
}
|
|
304
|
+
function _mpintBitLength(buf) {
|
|
305
|
+
let i = 0;
|
|
306
|
+
while (i < buf.length - 1 && buf[i] === 0) i++;
|
|
307
|
+
const trimmed = buf.subarray(i);
|
|
308
|
+
if (trimmed.length === 0) return 0;
|
|
309
|
+
let bits = (trimmed.length - 1) * 8;
|
|
310
|
+
let firstByte = trimmed[0];
|
|
311
|
+
while (firstByte > 0) {
|
|
312
|
+
bits++;
|
|
313
|
+
firstByte >>= 1;
|
|
314
|
+
}
|
|
315
|
+
return bits;
|
|
316
|
+
}
|
|
317
|
+
function _analyzeKnownHostsKey(keyType, blob) {
|
|
318
|
+
if (keyType === "ssh-dss") {
|
|
319
|
+
return { weak: true, weakReason: "DSA (ssh-dss) keys are deprecated and considered weak" };
|
|
320
|
+
}
|
|
321
|
+
if (keyType === "ssh-rsa") {
|
|
322
|
+
const typeField = _readSshString(blob, 0);
|
|
323
|
+
if (!typeField) return { weak: false };
|
|
324
|
+
const eField = _readSshString(blob, typeField.next);
|
|
325
|
+
if (!eField) return { weak: false };
|
|
326
|
+
const nField = _readSshString(blob, eField.next);
|
|
327
|
+
if (!nField) return { weak: false };
|
|
328
|
+
const bits = _mpintBitLength(nField.value);
|
|
329
|
+
return bits > 0 && bits < 2048 ? { bits, weak: true, weakReason: `RSA modulus is only ${bits} bits; 2048+ is recommended` } : { bits, weak: false };
|
|
330
|
+
}
|
|
331
|
+
if (keyType === "ssh-ed25519") {
|
|
332
|
+
return { bits: 256, weak: false };
|
|
333
|
+
}
|
|
334
|
+
if (keyType.startsWith("ecdsa-sha2-")) {
|
|
335
|
+
const curve = keyType.split("-").pop() ?? "";
|
|
336
|
+
const bits = curve === "nistp256" ? 256 : curve === "nistp384" ? 384 : curve === "nistp521" ? 521 : void 0;
|
|
337
|
+
return { bits, weak: false };
|
|
338
|
+
}
|
|
339
|
+
return { weak: false };
|
|
340
|
+
}
|
|
341
|
+
function checkKnownHostsFingerprints(input) {
|
|
342
|
+
if (typeof input !== "string" || input.trim().length === 0) {
|
|
343
|
+
return { error: "input is required" };
|
|
344
|
+
}
|
|
345
|
+
const lines = input.split("\n").map((l) => l.trim()).filter((l) => l.length > 0 && !l.startsWith("#"));
|
|
346
|
+
if (lines.length === 0) {
|
|
347
|
+
return { error: "No known_hosts entries found" };
|
|
348
|
+
}
|
|
349
|
+
const entries = [];
|
|
350
|
+
for (const line of lines) {
|
|
351
|
+
const parts = line.split(/\s+/);
|
|
352
|
+
let idx = 0;
|
|
353
|
+
if (parts[0] === "@cert-authority" || parts[0] === "@revoked") idx = 1;
|
|
354
|
+
if (parts.length < idx + 3) {
|
|
355
|
+
return { error: `Malformed line: "${line}"` };
|
|
356
|
+
}
|
|
357
|
+
const host = parts[idx];
|
|
358
|
+
const keyType = parts[idx + 1];
|
|
359
|
+
const base64Key = parts[idx + 2];
|
|
360
|
+
let blob;
|
|
361
|
+
try {
|
|
362
|
+
blob = Buffer.from(base64Key, "base64");
|
|
363
|
+
} catch {
|
|
364
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
365
|
+
}
|
|
366
|
+
if (blob.length === 0) {
|
|
367
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
368
|
+
}
|
|
369
|
+
const sha256 = createHash("sha256").update(blob).digest("base64").replace(/=+$/, "");
|
|
370
|
+
const md52 = createHash("md5").update(blob).digest("hex").replace(/(.{2})(?=.)/g, "$1:");
|
|
371
|
+
const analysis = _analyzeKnownHostsKey(keyType, blob);
|
|
372
|
+
entries.push({
|
|
373
|
+
host,
|
|
374
|
+
keyType,
|
|
375
|
+
fingerprintSha256: `SHA256:${sha256}`,
|
|
376
|
+
fingerprintMd5: `MD5:${md52}`,
|
|
377
|
+
bits: analysis.bits,
|
|
378
|
+
weak: analysis.weak,
|
|
379
|
+
weakReason: analysis.weakReason
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
return { entries };
|
|
383
|
+
}
|
|
295
384
|
|
|
296
|
-
export { ETAG_ALGORITHMS, HASH_ALGORITHMS, HASH_BITS, ROUND_OPTIONS, SRI_ALGORITHMS, createEntry, generateBcryptHash, generateEtag, generateHtpasswdFile, generateMd5Hash, generatePlain, generateSha1Hash, generateSri, generateSriAll, hashAll, hashOne, hashPassword, hashWithTiming, hashing_exports, parseHtpasswdFile, validateRounds, validateUsername, verifyPassword };
|
|
385
|
+
export { ETAG_ALGORITHMS, HASH_ALGORITHMS, HASH_BITS, ROUND_OPTIONS, SRI_ALGORITHMS, checkKnownHostsFingerprints, createEntry, generateBcryptHash, generateEtag, generateHtpasswdFile, generateMd5Hash, generatePlain, generateSha1Hash, generateSri, generateSriAll, hashAll, hashOne, hashPassword, hashWithTiming, hashing_exports, parseHtpasswdFile, validateRounds, validateUsername, verifyPassword };
|
|
@@ -34,6 +34,7 @@ __export(units_exports, {
|
|
|
34
34
|
calculateDebtToIncomeRatio: () => calculateDebtToIncomeRatio,
|
|
35
35
|
calculateDepreciationSchedule: () => calculateDepreciationSchedule,
|
|
36
36
|
calculateDiscount: () => calculateDiscount,
|
|
37
|
+
calculateDividendYield: () => calculateDividendYield,
|
|
37
38
|
calculateEmi: () => calculateEmi,
|
|
38
39
|
calculateExtraPaymentPayoff: () => calculateExtraPaymentPayoff,
|
|
39
40
|
calculateFreelancerRate: () => calculateFreelancerRate,
|
|
@@ -3418,5 +3419,30 @@ function convertTimecode(input) {
|
|
|
3418
3419
|
}
|
|
3419
3420
|
return { error: 'mode must be "frames-to-timecode" or "timecode-to-frames"' };
|
|
3420
3421
|
}
|
|
3422
|
+
function calculateDividendYield(input) {
|
|
3423
|
+
const { annualDividendPerShare, sharePrice, epsPerShare } = input;
|
|
3424
|
+
if (!Number.isFinite(annualDividendPerShare) || annualDividendPerShare < 0) {
|
|
3425
|
+
return { error: "annualDividendPerShare must be a finite number greater than or equal to zero" };
|
|
3426
|
+
}
|
|
3427
|
+
if (!Number.isFinite(sharePrice) || sharePrice <= 0) {
|
|
3428
|
+
return { error: "sharePrice must be a finite number greater than zero" };
|
|
3429
|
+
}
|
|
3430
|
+
const round4 = (n) => Math.round(n * 1e4) / 1e4;
|
|
3431
|
+
const result = {
|
|
3432
|
+
annualDividendPerShare: round4(annualDividendPerShare),
|
|
3433
|
+
sharePrice: round4(sharePrice),
|
|
3434
|
+
dividendYieldPercent: round4(annualDividendPerShare / sharePrice * 100)
|
|
3435
|
+
};
|
|
3436
|
+
if (epsPerShare !== void 0) {
|
|
3437
|
+
if (!Number.isFinite(epsPerShare) || epsPerShare <= 0) {
|
|
3438
|
+
return { error: "epsPerShare must be a finite number greater than zero when provided" };
|
|
3439
|
+
}
|
|
3440
|
+
const payoutRatioPercent = annualDividendPerShare / epsPerShare * 100;
|
|
3441
|
+
result.epsPerShare = round4(epsPerShare);
|
|
3442
|
+
result.payoutRatioPercent = round4(payoutRatioPercent);
|
|
3443
|
+
result.retentionRatioPercent = round4(100 - payoutRatioPercent);
|
|
3444
|
+
}
|
|
3445
|
+
return result;
|
|
3446
|
+
}
|
|
3421
3447
|
|
|
3422
|
-
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculatePositionSize, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, convertTimecode, coverBox, decimalToIp, decimalToIpCidr, describePermissions, detectNegativeAmortization, estimateAudioFileSize, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, intersectSemverRanges, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateRoutingNumber, validateVin, viewportToPx };
|
|
3448
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateDividendYield, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculatePositionSize, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, convertTimecode, coverBox, decimalToIp, decimalToIpCidr, describePermissions, detectNegativeAmortization, estimateAudioFileSize, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, intersectSemverRanges, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateRoutingNumber, validateVin, viewportToPx };
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* generateHtpasswdFile, validateUsername
|
|
10
10
|
* - sri-hash-generator: generateSri, generateSriAll (SHA-256/384/512 Subresource Integrity hashes)
|
|
11
11
|
* - etag-generator : generateEtag (MD5/SHA-1/SHA-256 content-hash ETag header values)
|
|
12
|
+
* - ssh-known-hosts-fingerprint-checker: checkKnownHostsFingerprints
|
|
12
13
|
*/
|
|
13
14
|
type HashAlgorithm = 'MD5' | 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512';
|
|
14
15
|
declare const HASH_ALGORITHMS: HashAlgorithm[];
|
|
@@ -88,6 +89,32 @@ interface EtagResult {
|
|
|
88
89
|
declare function generateEtag(content: string, algorithm?: EtagAlgorithm, weak?: boolean): EtagResult | {
|
|
89
90
|
error: string;
|
|
90
91
|
};
|
|
92
|
+
interface KnownHostsEntry {
|
|
93
|
+
host: string;
|
|
94
|
+
keyType: string;
|
|
95
|
+
fingerprintSha256: string;
|
|
96
|
+
fingerprintMd5: string;
|
|
97
|
+
bits?: number;
|
|
98
|
+
weak: boolean;
|
|
99
|
+
weakReason?: string;
|
|
100
|
+
}
|
|
101
|
+
interface KnownHostsCheckResult {
|
|
102
|
+
entries: KnownHostsEntry[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Parse an ssh_known_hosts file (or a single `host keytype base64key
|
|
106
|
+
* [comment]` line) and compute each entry's SHA256 and MD5 fingerprint the
|
|
107
|
+
* same way `ssh-keygen -lf` does: SHA256 is the base64 (no padding) of the
|
|
108
|
+
* SHA-256 digest of the decoded key blob, MD5 is the colon-separated hex of
|
|
109
|
+
* the MD5 digest. Also decodes the key type and, for RSA, the modulus bit
|
|
110
|
+
* length, flagging a weak RSA key (<2048 bits) or a deprecated ssh-dss
|
|
111
|
+
* (DSA) key. `@cert-authority`/`@revoked` markers are skipped. Operates
|
|
112
|
+
* only on public key material already present in the file; never touches a
|
|
113
|
+
* private key.
|
|
114
|
+
*/
|
|
115
|
+
declare function checkKnownHostsFingerprints(input: string): KnownHostsCheckResult | {
|
|
116
|
+
error: string;
|
|
117
|
+
};
|
|
91
118
|
|
|
92
119
|
type hashing_BcryptResult = BcryptResult;
|
|
93
120
|
declare const hashing_ETAG_ALGORITHMS: typeof ETAG_ALGORITHMS;
|
|
@@ -99,10 +126,13 @@ type hashing_HashAlgorithm = HashAlgorithm;
|
|
|
99
126
|
type hashing_HashResult = HashResult;
|
|
100
127
|
type hashing_HtpasswdAlgorithm = HtpasswdAlgorithm;
|
|
101
128
|
type hashing_HtpasswdEntry = HtpasswdEntry;
|
|
129
|
+
type hashing_KnownHostsCheckResult = KnownHostsCheckResult;
|
|
130
|
+
type hashing_KnownHostsEntry = KnownHostsEntry;
|
|
102
131
|
declare const hashing_ROUND_OPTIONS: typeof ROUND_OPTIONS;
|
|
103
132
|
declare const hashing_SRI_ALGORITHMS: typeof SRI_ALGORITHMS;
|
|
104
133
|
type hashing_SriAlgorithm = SriAlgorithm;
|
|
105
134
|
type hashing_SriResult = SriResult;
|
|
135
|
+
declare const hashing_checkKnownHostsFingerprints: typeof checkKnownHostsFingerprints;
|
|
106
136
|
declare const hashing_createEntry: typeof createEntry;
|
|
107
137
|
declare const hashing_generateBcryptHash: typeof generateBcryptHash;
|
|
108
138
|
declare const hashing_generateEtag: typeof generateEtag;
|
|
@@ -121,7 +151,7 @@ declare const hashing_validateRounds: typeof validateRounds;
|
|
|
121
151
|
declare const hashing_validateUsername: typeof validateUsername;
|
|
122
152
|
declare const hashing_verifyPassword: typeof verifyPassword;
|
|
123
153
|
declare namespace hashing {
|
|
124
|
-
export { type hashing_BcryptResult as BcryptResult, hashing_ETAG_ALGORITHMS as ETAG_ALGORITHMS, type hashing_EtagAlgorithm as EtagAlgorithm, type hashing_EtagResult as EtagResult, hashing_HASH_ALGORITHMS as HASH_ALGORITHMS, hashing_HASH_BITS as HASH_BITS, type hashing_HashAlgorithm as HashAlgorithm, type hashing_HashResult as HashResult, type hashing_HtpasswdAlgorithm as HtpasswdAlgorithm, type hashing_HtpasswdEntry as HtpasswdEntry, hashing_ROUND_OPTIONS as ROUND_OPTIONS, hashing_SRI_ALGORITHMS as SRI_ALGORITHMS, type hashing_SriAlgorithm as SriAlgorithm, type hashing_SriResult as SriResult, hashing_createEntry as createEntry, hashing_generateBcryptHash as generateBcryptHash, hashing_generateEtag as generateEtag, hashing_generateHtpasswdFile as generateHtpasswdFile, hashing_generateMd5Hash as generateMd5Hash, hashing_generatePlain as generatePlain, hashing_generateSha1Hash as generateSha1Hash, hashing_generateSri as generateSri, hashing_generateSriAll as generateSriAll, hashing_hashAll as hashAll, hashing_hashOne as hashOne, hashing_hashPassword as hashPassword, hashing_hashWithTiming as hashWithTiming, hashing_parseHtpasswdFile as parseHtpasswdFile, hashing_validateRounds as validateRounds, hashing_validateUsername as validateUsername, hashing_verifyPassword as verifyPassword };
|
|
154
|
+
export { type hashing_BcryptResult as BcryptResult, hashing_ETAG_ALGORITHMS as ETAG_ALGORITHMS, type hashing_EtagAlgorithm as EtagAlgorithm, type hashing_EtagResult as EtagResult, hashing_HASH_ALGORITHMS as HASH_ALGORITHMS, hashing_HASH_BITS as HASH_BITS, type hashing_HashAlgorithm as HashAlgorithm, type hashing_HashResult as HashResult, type hashing_HtpasswdAlgorithm as HtpasswdAlgorithm, type hashing_HtpasswdEntry as HtpasswdEntry, type hashing_KnownHostsCheckResult as KnownHostsCheckResult, type hashing_KnownHostsEntry as KnownHostsEntry, hashing_ROUND_OPTIONS as ROUND_OPTIONS, hashing_SRI_ALGORITHMS as SRI_ALGORITHMS, type hashing_SriAlgorithm as SriAlgorithm, type hashing_SriResult as SriResult, hashing_checkKnownHostsFingerprints as checkKnownHostsFingerprints, hashing_createEntry as createEntry, hashing_generateBcryptHash as generateBcryptHash, hashing_generateEtag as generateEtag, hashing_generateHtpasswdFile as generateHtpasswdFile, hashing_generateMd5Hash as generateMd5Hash, hashing_generatePlain as generatePlain, hashing_generateSha1Hash as generateSha1Hash, hashing_generateSri as generateSri, hashing_generateSriAll as generateSriAll, hashing_hashAll as hashAll, hashing_hashOne as hashOne, hashing_hashPassword as hashPassword, hashing_hashWithTiming as hashWithTiming, hashing_parseHtpasswdFile as parseHtpasswdFile, hashing_validateRounds as validateRounds, hashing_validateUsername as validateUsername, hashing_verifyPassword as verifyPassword };
|
|
125
155
|
}
|
|
126
156
|
|
|
127
|
-
export {
|
|
157
|
+
export { validateRounds as A, type BcryptResult as B, validateUsername as C, verifyPassword as D, ETAG_ALGORITHMS as E, HASH_ALGORITHMS as H, type KnownHostsCheckResult as K, ROUND_OPTIONS as R, SRI_ALGORITHMS as S, type EtagAlgorithm as a, type EtagResult as b, HASH_BITS as c, type HashAlgorithm as d, type HashResult as e, type HtpasswdAlgorithm as f, type HtpasswdEntry as g, hashing as h, type KnownHostsEntry as i, type SriAlgorithm as j, type SriResult as k, checkKnownHostsFingerprints as l, createEntry as m, generateBcryptHash as n, generateEtag as o, generateHtpasswdFile as p, generateMd5Hash as q, generatePlain as r, generateSha1Hash as s, generateSri as t, generateSriAll as u, hashAll as v, hashOne as w, hashPassword as x, hashWithTiming as y, parseHtpasswdFile as z };
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* generateHtpasswdFile, validateUsername
|
|
10
10
|
* - sri-hash-generator: generateSri, generateSriAll (SHA-256/384/512 Subresource Integrity hashes)
|
|
11
11
|
* - etag-generator : generateEtag (MD5/SHA-1/SHA-256 content-hash ETag header values)
|
|
12
|
+
* - ssh-known-hosts-fingerprint-checker: checkKnownHostsFingerprints
|
|
12
13
|
*/
|
|
13
14
|
type HashAlgorithm = 'MD5' | 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512';
|
|
14
15
|
declare const HASH_ALGORITHMS: HashAlgorithm[];
|
|
@@ -88,6 +89,32 @@ interface EtagResult {
|
|
|
88
89
|
declare function generateEtag(content: string, algorithm?: EtagAlgorithm, weak?: boolean): EtagResult | {
|
|
89
90
|
error: string;
|
|
90
91
|
};
|
|
92
|
+
interface KnownHostsEntry {
|
|
93
|
+
host: string;
|
|
94
|
+
keyType: string;
|
|
95
|
+
fingerprintSha256: string;
|
|
96
|
+
fingerprintMd5: string;
|
|
97
|
+
bits?: number;
|
|
98
|
+
weak: boolean;
|
|
99
|
+
weakReason?: string;
|
|
100
|
+
}
|
|
101
|
+
interface KnownHostsCheckResult {
|
|
102
|
+
entries: KnownHostsEntry[];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Parse an ssh_known_hosts file (or a single `host keytype base64key
|
|
106
|
+
* [comment]` line) and compute each entry's SHA256 and MD5 fingerprint the
|
|
107
|
+
* same way `ssh-keygen -lf` does: SHA256 is the base64 (no padding) of the
|
|
108
|
+
* SHA-256 digest of the decoded key blob, MD5 is the colon-separated hex of
|
|
109
|
+
* the MD5 digest. Also decodes the key type and, for RSA, the modulus bit
|
|
110
|
+
* length, flagging a weak RSA key (<2048 bits) or a deprecated ssh-dss
|
|
111
|
+
* (DSA) key. `@cert-authority`/`@revoked` markers are skipped. Operates
|
|
112
|
+
* only on public key material already present in the file; never touches a
|
|
113
|
+
* private key.
|
|
114
|
+
*/
|
|
115
|
+
declare function checkKnownHostsFingerprints(input: string): KnownHostsCheckResult | {
|
|
116
|
+
error: string;
|
|
117
|
+
};
|
|
91
118
|
|
|
92
119
|
type hashing_BcryptResult = BcryptResult;
|
|
93
120
|
declare const hashing_ETAG_ALGORITHMS: typeof ETAG_ALGORITHMS;
|
|
@@ -99,10 +126,13 @@ type hashing_HashAlgorithm = HashAlgorithm;
|
|
|
99
126
|
type hashing_HashResult = HashResult;
|
|
100
127
|
type hashing_HtpasswdAlgorithm = HtpasswdAlgorithm;
|
|
101
128
|
type hashing_HtpasswdEntry = HtpasswdEntry;
|
|
129
|
+
type hashing_KnownHostsCheckResult = KnownHostsCheckResult;
|
|
130
|
+
type hashing_KnownHostsEntry = KnownHostsEntry;
|
|
102
131
|
declare const hashing_ROUND_OPTIONS: typeof ROUND_OPTIONS;
|
|
103
132
|
declare const hashing_SRI_ALGORITHMS: typeof SRI_ALGORITHMS;
|
|
104
133
|
type hashing_SriAlgorithm = SriAlgorithm;
|
|
105
134
|
type hashing_SriResult = SriResult;
|
|
135
|
+
declare const hashing_checkKnownHostsFingerprints: typeof checkKnownHostsFingerprints;
|
|
106
136
|
declare const hashing_createEntry: typeof createEntry;
|
|
107
137
|
declare const hashing_generateBcryptHash: typeof generateBcryptHash;
|
|
108
138
|
declare const hashing_generateEtag: typeof generateEtag;
|
|
@@ -121,7 +151,7 @@ declare const hashing_validateRounds: typeof validateRounds;
|
|
|
121
151
|
declare const hashing_validateUsername: typeof validateUsername;
|
|
122
152
|
declare const hashing_verifyPassword: typeof verifyPassword;
|
|
123
153
|
declare namespace hashing {
|
|
124
|
-
export { type hashing_BcryptResult as BcryptResult, hashing_ETAG_ALGORITHMS as ETAG_ALGORITHMS, type hashing_EtagAlgorithm as EtagAlgorithm, type hashing_EtagResult as EtagResult, hashing_HASH_ALGORITHMS as HASH_ALGORITHMS, hashing_HASH_BITS as HASH_BITS, type hashing_HashAlgorithm as HashAlgorithm, type hashing_HashResult as HashResult, type hashing_HtpasswdAlgorithm as HtpasswdAlgorithm, type hashing_HtpasswdEntry as HtpasswdEntry, hashing_ROUND_OPTIONS as ROUND_OPTIONS, hashing_SRI_ALGORITHMS as SRI_ALGORITHMS, type hashing_SriAlgorithm as SriAlgorithm, type hashing_SriResult as SriResult, hashing_createEntry as createEntry, hashing_generateBcryptHash as generateBcryptHash, hashing_generateEtag as generateEtag, hashing_generateHtpasswdFile as generateHtpasswdFile, hashing_generateMd5Hash as generateMd5Hash, hashing_generatePlain as generatePlain, hashing_generateSha1Hash as generateSha1Hash, hashing_generateSri as generateSri, hashing_generateSriAll as generateSriAll, hashing_hashAll as hashAll, hashing_hashOne as hashOne, hashing_hashPassword as hashPassword, hashing_hashWithTiming as hashWithTiming, hashing_parseHtpasswdFile as parseHtpasswdFile, hashing_validateRounds as validateRounds, hashing_validateUsername as validateUsername, hashing_verifyPassword as verifyPassword };
|
|
154
|
+
export { type hashing_BcryptResult as BcryptResult, hashing_ETAG_ALGORITHMS as ETAG_ALGORITHMS, type hashing_EtagAlgorithm as EtagAlgorithm, type hashing_EtagResult as EtagResult, hashing_HASH_ALGORITHMS as HASH_ALGORITHMS, hashing_HASH_BITS as HASH_BITS, type hashing_HashAlgorithm as HashAlgorithm, type hashing_HashResult as HashResult, type hashing_HtpasswdAlgorithm as HtpasswdAlgorithm, type hashing_HtpasswdEntry as HtpasswdEntry, type hashing_KnownHostsCheckResult as KnownHostsCheckResult, type hashing_KnownHostsEntry as KnownHostsEntry, hashing_ROUND_OPTIONS as ROUND_OPTIONS, hashing_SRI_ALGORITHMS as SRI_ALGORITHMS, type hashing_SriAlgorithm as SriAlgorithm, type hashing_SriResult as SriResult, hashing_checkKnownHostsFingerprints as checkKnownHostsFingerprints, hashing_createEntry as createEntry, hashing_generateBcryptHash as generateBcryptHash, hashing_generateEtag as generateEtag, hashing_generateHtpasswdFile as generateHtpasswdFile, hashing_generateMd5Hash as generateMd5Hash, hashing_generatePlain as generatePlain, hashing_generateSha1Hash as generateSha1Hash, hashing_generateSri as generateSri, hashing_generateSriAll as generateSriAll, hashing_hashAll as hashAll, hashing_hashOne as hashOne, hashing_hashPassword as hashPassword, hashing_hashWithTiming as hashWithTiming, hashing_parseHtpasswdFile as parseHtpasswdFile, hashing_validateRounds as validateRounds, hashing_validateUsername as validateUsername, hashing_verifyPassword as verifyPassword };
|
|
125
155
|
}
|
|
126
156
|
|
|
127
|
-
export {
|
|
157
|
+
export { validateRounds as A, type BcryptResult as B, validateUsername as C, verifyPassword as D, ETAG_ALGORITHMS as E, HASH_ALGORITHMS as H, type KnownHostsCheckResult as K, ROUND_OPTIONS as R, SRI_ALGORITHMS as S, type EtagAlgorithm as a, type EtagResult as b, HASH_BITS as c, type HashAlgorithm as d, type HashResult as e, type HtpasswdAlgorithm as f, type HtpasswdEntry as g, hashing as h, type KnownHostsEntry as i, type SriAlgorithm as j, type SriResult as k, checkKnownHostsFingerprints as l, createEntry as m, generateBcryptHash as n, generateEtag as o, generateHtpasswdFile as p, generateMd5Hash as q, generatePlain as r, generateSha1Hash as s, generateSri as t, generateSriAll as u, hashAll as v, hashOne as w, hashPassword as x, hashWithTiming as y, parseHtpasswdFile as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2186,6 +2186,7 @@ __export(hashing_exports, {
|
|
|
2186
2186
|
HASH_BITS: () => HASH_BITS,
|
|
2187
2187
|
ROUND_OPTIONS: () => ROUND_OPTIONS,
|
|
2188
2188
|
SRI_ALGORITHMS: () => SRI_ALGORITHMS,
|
|
2189
|
+
checkKnownHostsFingerprints: () => checkKnownHostsFingerprints,
|
|
2189
2190
|
createEntry: () => createEntry,
|
|
2190
2191
|
generateBcryptHash: () => generateBcryptHash,
|
|
2191
2192
|
generateEtag: () => generateEtag,
|
|
@@ -2467,6 +2468,94 @@ function generateEtag(content, algorithm = "SHA-1", weak = false) {
|
|
|
2467
2468
|
const etag = weak ? `W/${quoted}` : quoted;
|
|
2468
2469
|
return { algorithm, weak, hash, etag, headerName: "ETag", snippet: `ETag: ${etag}` };
|
|
2469
2470
|
}
|
|
2471
|
+
function _readSshString(buf, offset) {
|
|
2472
|
+
if (offset + 4 > buf.length) return null;
|
|
2473
|
+
const len = buf.readUInt32BE(offset);
|
|
2474
|
+
const start = offset + 4;
|
|
2475
|
+
const end = start + len;
|
|
2476
|
+
if (end > buf.length) return null;
|
|
2477
|
+
return { value: buf.subarray(start, end), next: end };
|
|
2478
|
+
}
|
|
2479
|
+
function _mpintBitLength(buf) {
|
|
2480
|
+
let i = 0;
|
|
2481
|
+
while (i < buf.length - 1 && buf[i] === 0) i++;
|
|
2482
|
+
const trimmed = buf.subarray(i);
|
|
2483
|
+
if (trimmed.length === 0) return 0;
|
|
2484
|
+
let bits = (trimmed.length - 1) * 8;
|
|
2485
|
+
let firstByte = trimmed[0];
|
|
2486
|
+
while (firstByte > 0) {
|
|
2487
|
+
bits++;
|
|
2488
|
+
firstByte >>= 1;
|
|
2489
|
+
}
|
|
2490
|
+
return bits;
|
|
2491
|
+
}
|
|
2492
|
+
function _analyzeKnownHostsKey(keyType, blob) {
|
|
2493
|
+
if (keyType === "ssh-dss") {
|
|
2494
|
+
return { weak: true, weakReason: "DSA (ssh-dss) keys are deprecated and considered weak" };
|
|
2495
|
+
}
|
|
2496
|
+
if (keyType === "ssh-rsa") {
|
|
2497
|
+
const typeField = _readSshString(blob, 0);
|
|
2498
|
+
if (!typeField) return { weak: false };
|
|
2499
|
+
const eField = _readSshString(blob, typeField.next);
|
|
2500
|
+
if (!eField) return { weak: false };
|
|
2501
|
+
const nField = _readSshString(blob, eField.next);
|
|
2502
|
+
if (!nField) return { weak: false };
|
|
2503
|
+
const bits = _mpintBitLength(nField.value);
|
|
2504
|
+
return bits > 0 && bits < 2048 ? { bits, weak: true, weakReason: `RSA modulus is only ${bits} bits; 2048+ is recommended` } : { bits, weak: false };
|
|
2505
|
+
}
|
|
2506
|
+
if (keyType === "ssh-ed25519") {
|
|
2507
|
+
return { bits: 256, weak: false };
|
|
2508
|
+
}
|
|
2509
|
+
if (keyType.startsWith("ecdsa-sha2-")) {
|
|
2510
|
+
const curve = keyType.split("-").pop() ?? "";
|
|
2511
|
+
const bits = curve === "nistp256" ? 256 : curve === "nistp384" ? 384 : curve === "nistp521" ? 521 : void 0;
|
|
2512
|
+
return { bits, weak: false };
|
|
2513
|
+
}
|
|
2514
|
+
return { weak: false };
|
|
2515
|
+
}
|
|
2516
|
+
function checkKnownHostsFingerprints(input) {
|
|
2517
|
+
if (typeof input !== "string" || input.trim().length === 0) {
|
|
2518
|
+
return { error: "input is required" };
|
|
2519
|
+
}
|
|
2520
|
+
const lines = input.split("\n").map((l) => l.trim()).filter((l) => l.length > 0 && !l.startsWith("#"));
|
|
2521
|
+
if (lines.length === 0) {
|
|
2522
|
+
return { error: "No known_hosts entries found" };
|
|
2523
|
+
}
|
|
2524
|
+
const entries = [];
|
|
2525
|
+
for (const line of lines) {
|
|
2526
|
+
const parts = line.split(/\s+/);
|
|
2527
|
+
let idx = 0;
|
|
2528
|
+
if (parts[0] === "@cert-authority" || parts[0] === "@revoked") idx = 1;
|
|
2529
|
+
if (parts.length < idx + 3) {
|
|
2530
|
+
return { error: `Malformed line: "${line}"` };
|
|
2531
|
+
}
|
|
2532
|
+
const host = parts[idx];
|
|
2533
|
+
const keyType = parts[idx + 1];
|
|
2534
|
+
const base64Key = parts[idx + 2];
|
|
2535
|
+
let blob;
|
|
2536
|
+
try {
|
|
2537
|
+
blob = Buffer.from(base64Key, "base64");
|
|
2538
|
+
} catch {
|
|
2539
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
2540
|
+
}
|
|
2541
|
+
if (blob.length === 0) {
|
|
2542
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
2543
|
+
}
|
|
2544
|
+
const sha256 = crypto.createHash("sha256").update(blob).digest("base64").replace(/=+$/, "");
|
|
2545
|
+
const md52 = crypto.createHash("md5").update(blob).digest("hex").replace(/(.{2})(?=.)/g, "$1:");
|
|
2546
|
+
const analysis = _analyzeKnownHostsKey(keyType, blob);
|
|
2547
|
+
entries.push({
|
|
2548
|
+
host,
|
|
2549
|
+
keyType,
|
|
2550
|
+
fingerprintSha256: `SHA256:${sha256}`,
|
|
2551
|
+
fingerprintMd5: `MD5:${md52}`,
|
|
2552
|
+
bits: analysis.bits,
|
|
2553
|
+
weak: analysis.weak,
|
|
2554
|
+
weakReason: analysis.weakReason
|
|
2555
|
+
});
|
|
2556
|
+
}
|
|
2557
|
+
return { entries };
|
|
2558
|
+
}
|
|
2470
2559
|
|
|
2471
2560
|
// src/tools/text.ts
|
|
2472
2561
|
var text_exports = {};
|
|
@@ -9644,6 +9733,7 @@ __export(units_exports, {
|
|
|
9644
9733
|
calculateDebtToIncomeRatio: () => calculateDebtToIncomeRatio,
|
|
9645
9734
|
calculateDepreciationSchedule: () => calculateDepreciationSchedule,
|
|
9646
9735
|
calculateDiscount: () => calculateDiscount,
|
|
9736
|
+
calculateDividendYield: () => calculateDividendYield,
|
|
9647
9737
|
calculateEmi: () => calculateEmi,
|
|
9648
9738
|
calculateExtraPaymentPayoff: () => calculateExtraPaymentPayoff,
|
|
9649
9739
|
calculateFreelancerRate: () => calculateFreelancerRate,
|
|
@@ -13028,6 +13118,31 @@ function convertTimecode(input) {
|
|
|
13028
13118
|
}
|
|
13029
13119
|
return { error: 'mode must be "frames-to-timecode" or "timecode-to-frames"' };
|
|
13030
13120
|
}
|
|
13121
|
+
function calculateDividendYield(input) {
|
|
13122
|
+
const { annualDividendPerShare, sharePrice, epsPerShare } = input;
|
|
13123
|
+
if (!Number.isFinite(annualDividendPerShare) || annualDividendPerShare < 0) {
|
|
13124
|
+
return { error: "annualDividendPerShare must be a finite number greater than or equal to zero" };
|
|
13125
|
+
}
|
|
13126
|
+
if (!Number.isFinite(sharePrice) || sharePrice <= 0) {
|
|
13127
|
+
return { error: "sharePrice must be a finite number greater than zero" };
|
|
13128
|
+
}
|
|
13129
|
+
const round4 = (n) => Math.round(n * 1e4) / 1e4;
|
|
13130
|
+
const result = {
|
|
13131
|
+
annualDividendPerShare: round4(annualDividendPerShare),
|
|
13132
|
+
sharePrice: round4(sharePrice),
|
|
13133
|
+
dividendYieldPercent: round4(annualDividendPerShare / sharePrice * 100)
|
|
13134
|
+
};
|
|
13135
|
+
if (epsPerShare !== void 0) {
|
|
13136
|
+
if (!Number.isFinite(epsPerShare) || epsPerShare <= 0) {
|
|
13137
|
+
return { error: "epsPerShare must be a finite number greater than zero when provided" };
|
|
13138
|
+
}
|
|
13139
|
+
const payoutRatioPercent = annualDividendPerShare / epsPerShare * 100;
|
|
13140
|
+
result.epsPerShare = round4(epsPerShare);
|
|
13141
|
+
result.payoutRatioPercent = round4(payoutRatioPercent);
|
|
13142
|
+
result.retentionRatioPercent = round4(100 - payoutRatioPercent);
|
|
13143
|
+
}
|
|
13144
|
+
return result;
|
|
13145
|
+
}
|
|
13031
13146
|
|
|
13032
13147
|
// src/tools/network.ts
|
|
13033
13148
|
var network_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { j as json } from './json-BtRszk1w.cjs';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.cjs';
|
|
3
|
-
export { h as hashing } from './hashing-
|
|
3
|
+
export { h as hashing } from './hashing-D2VIYoFn.cjs';
|
|
4
4
|
export { t as text } from './text-DFCNpyvH.cjs';
|
|
5
5
|
export { d as data } from './data-Dg5dEwWl.cjs';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.cjs';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
8
|
+
export { u as units } from './units-CmkM7-WZ.cjs';
|
|
9
9
|
export { n as network } from './network-B6fQrsCc.cjs';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.cjs';
|
|
11
11
|
export { c as code } from './code-CZHElFHu.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { j as json } from './json-BtRszk1w.js';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.js';
|
|
3
|
-
export { h as hashing } from './hashing-
|
|
3
|
+
export { h as hashing } from './hashing-D2VIYoFn.js';
|
|
4
4
|
export { t as text } from './text-DFCNpyvH.js';
|
|
5
5
|
export { d as data } from './data-Dg5dEwWl.js';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.js';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.js';
|
|
8
|
-
export { u as units } from './units-
|
|
8
|
+
export { u as units } from './units-CmkM7-WZ.js';
|
|
9
9
|
export { n as network } from './network-B6fQrsCc.js';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.js';
|
|
11
11
|
export { c as code } from './code-CZHElFHu.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-YSS4VVZU.js';
|
|
2
|
-
export { units_exports as units } from './chunk-
|
|
2
|
+
export { units_exports as units } from './chunk-3LHLFKP7.js';
|
|
3
3
|
export { network_exports as network } from './chunk-K242OOF4.js';
|
|
4
4
|
export { api_exports as api } from './chunk-U2HREMZU.js';
|
|
5
5
|
export { code_exports as code } from './chunk-KRPIOHJ4.js';
|
|
@@ -9,7 +9,7 @@ export { misc_exports as misc } from './chunk-GX7H6TAX.js';
|
|
|
9
9
|
export { ai_agent_exports as ai_agent } from './chunk-5VVC7BHS.js';
|
|
10
10
|
export { json_exports as json } from './chunk-PAMHORKV.js';
|
|
11
11
|
export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
|
|
12
|
-
export { hashing_exports as hashing } from './chunk-
|
|
12
|
+
export { hashing_exports as hashing } from './chunk-3BFKPP5R.js';
|
|
13
13
|
export { text_exports as text } from './chunk-2YWKRNDM.js';
|
|
14
14
|
export { data_exports as data } from './chunk-NTHUTIZH.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-422ICOZX.js';
|
package/dist/tools/hashing.cjs
CHANGED
|
@@ -273,12 +273,101 @@ function generateEtag(content, algorithm = "SHA-1", weak = false) {
|
|
|
273
273
|
const etag = weak ? `W/${quoted}` : quoted;
|
|
274
274
|
return { algorithm, weak, hash, etag, headerName: "ETag", snippet: `ETag: ${etag}` };
|
|
275
275
|
}
|
|
276
|
+
function _readSshString(buf, offset) {
|
|
277
|
+
if (offset + 4 > buf.length) return null;
|
|
278
|
+
const len = buf.readUInt32BE(offset);
|
|
279
|
+
const start = offset + 4;
|
|
280
|
+
const end = start + len;
|
|
281
|
+
if (end > buf.length) return null;
|
|
282
|
+
return { value: buf.subarray(start, end), next: end };
|
|
283
|
+
}
|
|
284
|
+
function _mpintBitLength(buf) {
|
|
285
|
+
let i = 0;
|
|
286
|
+
while (i < buf.length - 1 && buf[i] === 0) i++;
|
|
287
|
+
const trimmed = buf.subarray(i);
|
|
288
|
+
if (trimmed.length === 0) return 0;
|
|
289
|
+
let bits = (trimmed.length - 1) * 8;
|
|
290
|
+
let firstByte = trimmed[0];
|
|
291
|
+
while (firstByte > 0) {
|
|
292
|
+
bits++;
|
|
293
|
+
firstByte >>= 1;
|
|
294
|
+
}
|
|
295
|
+
return bits;
|
|
296
|
+
}
|
|
297
|
+
function _analyzeKnownHostsKey(keyType, blob) {
|
|
298
|
+
if (keyType === "ssh-dss") {
|
|
299
|
+
return { weak: true, weakReason: "DSA (ssh-dss) keys are deprecated and considered weak" };
|
|
300
|
+
}
|
|
301
|
+
if (keyType === "ssh-rsa") {
|
|
302
|
+
const typeField = _readSshString(blob, 0);
|
|
303
|
+
if (!typeField) return { weak: false };
|
|
304
|
+
const eField = _readSshString(blob, typeField.next);
|
|
305
|
+
if (!eField) return { weak: false };
|
|
306
|
+
const nField = _readSshString(blob, eField.next);
|
|
307
|
+
if (!nField) return { weak: false };
|
|
308
|
+
const bits = _mpintBitLength(nField.value);
|
|
309
|
+
return bits > 0 && bits < 2048 ? { bits, weak: true, weakReason: `RSA modulus is only ${bits} bits; 2048+ is recommended` } : { bits, weak: false };
|
|
310
|
+
}
|
|
311
|
+
if (keyType === "ssh-ed25519") {
|
|
312
|
+
return { bits: 256, weak: false };
|
|
313
|
+
}
|
|
314
|
+
if (keyType.startsWith("ecdsa-sha2-")) {
|
|
315
|
+
const curve = keyType.split("-").pop() ?? "";
|
|
316
|
+
const bits = curve === "nistp256" ? 256 : curve === "nistp384" ? 384 : curve === "nistp521" ? 521 : void 0;
|
|
317
|
+
return { bits, weak: false };
|
|
318
|
+
}
|
|
319
|
+
return { weak: false };
|
|
320
|
+
}
|
|
321
|
+
function checkKnownHostsFingerprints(input) {
|
|
322
|
+
if (typeof input !== "string" || input.trim().length === 0) {
|
|
323
|
+
return { error: "input is required" };
|
|
324
|
+
}
|
|
325
|
+
const lines = input.split("\n").map((l) => l.trim()).filter((l) => l.length > 0 && !l.startsWith("#"));
|
|
326
|
+
if (lines.length === 0) {
|
|
327
|
+
return { error: "No known_hosts entries found" };
|
|
328
|
+
}
|
|
329
|
+
const entries = [];
|
|
330
|
+
for (const line of lines) {
|
|
331
|
+
const parts = line.split(/\s+/);
|
|
332
|
+
let idx = 0;
|
|
333
|
+
if (parts[0] === "@cert-authority" || parts[0] === "@revoked") idx = 1;
|
|
334
|
+
if (parts.length < idx + 3) {
|
|
335
|
+
return { error: `Malformed line: "${line}"` };
|
|
336
|
+
}
|
|
337
|
+
const host = parts[idx];
|
|
338
|
+
const keyType = parts[idx + 1];
|
|
339
|
+
const base64Key = parts[idx + 2];
|
|
340
|
+
let blob;
|
|
341
|
+
try {
|
|
342
|
+
blob = Buffer.from(base64Key, "base64");
|
|
343
|
+
} catch {
|
|
344
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
345
|
+
}
|
|
346
|
+
if (blob.length === 0) {
|
|
347
|
+
return { error: `Invalid base64 key for host "${host}"` };
|
|
348
|
+
}
|
|
349
|
+
const sha256 = crypto.createHash("sha256").update(blob).digest("base64").replace(/=+$/, "");
|
|
350
|
+
const md52 = crypto.createHash("md5").update(blob).digest("hex").replace(/(.{2})(?=.)/g, "$1:");
|
|
351
|
+
const analysis = _analyzeKnownHostsKey(keyType, blob);
|
|
352
|
+
entries.push({
|
|
353
|
+
host,
|
|
354
|
+
keyType,
|
|
355
|
+
fingerprintSha256: `SHA256:${sha256}`,
|
|
356
|
+
fingerprintMd5: `MD5:${md52}`,
|
|
357
|
+
bits: analysis.bits,
|
|
358
|
+
weak: analysis.weak,
|
|
359
|
+
weakReason: analysis.weakReason
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return { entries };
|
|
363
|
+
}
|
|
276
364
|
|
|
277
365
|
exports.ETAG_ALGORITHMS = ETAG_ALGORITHMS;
|
|
278
366
|
exports.HASH_ALGORITHMS = HASH_ALGORITHMS;
|
|
279
367
|
exports.HASH_BITS = HASH_BITS;
|
|
280
368
|
exports.ROUND_OPTIONS = ROUND_OPTIONS;
|
|
281
369
|
exports.SRI_ALGORITHMS = SRI_ALGORITHMS;
|
|
370
|
+
exports.checkKnownHostsFingerprints = checkKnownHostsFingerprints;
|
|
282
371
|
exports.createEntry = createEntry;
|
|
283
372
|
exports.generateBcryptHash = generateBcryptHash;
|
|
284
373
|
exports.generateEtag = generateEtag;
|
package/dist/tools/hashing.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BcryptResult, E as ETAG_ALGORITHMS, a as EtagAlgorithm, b as EtagResult, H as HASH_ALGORITHMS, c as HASH_BITS, d as HashAlgorithm, e as HashResult, f as HtpasswdAlgorithm, g as HtpasswdEntry, R as ROUND_OPTIONS, S as SRI_ALGORITHMS,
|
|
1
|
+
export { B as BcryptResult, E as ETAG_ALGORITHMS, a as EtagAlgorithm, b as EtagResult, H as HASH_ALGORITHMS, c as HASH_BITS, d as HashAlgorithm, e as HashResult, f as HtpasswdAlgorithm, g as HtpasswdEntry, K as KnownHostsCheckResult, i as KnownHostsEntry, R as ROUND_OPTIONS, S as SRI_ALGORITHMS, j as SriAlgorithm, k as SriResult, l as checkKnownHostsFingerprints, m as createEntry, n as generateBcryptHash, o as generateEtag, p as generateHtpasswdFile, q as generateMd5Hash, r as generatePlain, s as generateSha1Hash, t as generateSri, u as generateSriAll, v as hashAll, w as hashOne, x as hashPassword, y as hashWithTiming, z as parseHtpasswdFile, A as validateRounds, C as validateUsername, D as verifyPassword } from '../hashing-D2VIYoFn.cjs';
|
package/dist/tools/hashing.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BcryptResult, E as ETAG_ALGORITHMS, a as EtagAlgorithm, b as EtagResult, H as HASH_ALGORITHMS, c as HASH_BITS, d as HashAlgorithm, e as HashResult, f as HtpasswdAlgorithm, g as HtpasswdEntry, R as ROUND_OPTIONS, S as SRI_ALGORITHMS,
|
|
1
|
+
export { B as BcryptResult, E as ETAG_ALGORITHMS, a as EtagAlgorithm, b as EtagResult, H as HASH_ALGORITHMS, c as HASH_BITS, d as HashAlgorithm, e as HashResult, f as HtpasswdAlgorithm, g as HtpasswdEntry, K as KnownHostsCheckResult, i as KnownHostsEntry, R as ROUND_OPTIONS, S as SRI_ALGORITHMS, j as SriAlgorithm, k as SriResult, l as checkKnownHostsFingerprints, m as createEntry, n as generateBcryptHash, o as generateEtag, p as generateHtpasswdFile, q as generateMd5Hash, r as generatePlain, s as generateSha1Hash, t as generateSri, u as generateSriAll, v as hashAll, w as hashOne, x as hashPassword, y as hashWithTiming, z as parseHtpasswdFile, A as validateRounds, C as validateUsername, D as verifyPassword } from '../hashing-D2VIYoFn.js';
|
package/dist/tools/hashing.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ETAG_ALGORITHMS, HASH_ALGORITHMS, HASH_BITS, ROUND_OPTIONS, SRI_ALGORITHMS, createEntry, generateBcryptHash, generateEtag, generateHtpasswdFile, generateMd5Hash, generatePlain, generateSha1Hash, generateSri, generateSriAll, hashAll, hashOne, hashPassword, hashWithTiming, parseHtpasswdFile, validateRounds, validateUsername, verifyPassword } from '../chunk-
|
|
1
|
+
export { ETAG_ALGORITHMS, HASH_ALGORITHMS, HASH_BITS, ROUND_OPTIONS, SRI_ALGORITHMS, checkKnownHostsFingerprints, createEntry, generateBcryptHash, generateEtag, generateHtpasswdFile, generateMd5Hash, generatePlain, generateSha1Hash, generateSri, generateSriAll, hashAll, hashOne, hashPassword, hashWithTiming, parseHtpasswdFile, validateRounds, validateUsername, verifyPassword } from '../chunk-3BFKPP5R.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -3297,6 +3297,31 @@ function convertTimecode(input) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
return { error: 'mode must be "frames-to-timecode" or "timecode-to-frames"' };
|
|
3299
3299
|
}
|
|
3300
|
+
function calculateDividendYield(input) {
|
|
3301
|
+
const { annualDividendPerShare, sharePrice, epsPerShare } = input;
|
|
3302
|
+
if (!Number.isFinite(annualDividendPerShare) || annualDividendPerShare < 0) {
|
|
3303
|
+
return { error: "annualDividendPerShare must be a finite number greater than or equal to zero" };
|
|
3304
|
+
}
|
|
3305
|
+
if (!Number.isFinite(sharePrice) || sharePrice <= 0) {
|
|
3306
|
+
return { error: "sharePrice must be a finite number greater than zero" };
|
|
3307
|
+
}
|
|
3308
|
+
const round4 = (n) => Math.round(n * 1e4) / 1e4;
|
|
3309
|
+
const result = {
|
|
3310
|
+
annualDividendPerShare: round4(annualDividendPerShare),
|
|
3311
|
+
sharePrice: round4(sharePrice),
|
|
3312
|
+
dividendYieldPercent: round4(annualDividendPerShare / sharePrice * 100)
|
|
3313
|
+
};
|
|
3314
|
+
if (epsPerShare !== void 0) {
|
|
3315
|
+
if (!Number.isFinite(epsPerShare) || epsPerShare <= 0) {
|
|
3316
|
+
return { error: "epsPerShare must be a finite number greater than zero when provided" };
|
|
3317
|
+
}
|
|
3318
|
+
const payoutRatioPercent = annualDividendPerShare / epsPerShare * 100;
|
|
3319
|
+
result.epsPerShare = round4(epsPerShare);
|
|
3320
|
+
result.payoutRatioPercent = round4(payoutRatioPercent);
|
|
3321
|
+
result.retentionRatioPercent = round4(100 - payoutRatioPercent);
|
|
3322
|
+
}
|
|
3323
|
+
return result;
|
|
3324
|
+
}
|
|
3300
3325
|
|
|
3301
3326
|
exports.BASE_LABELS = BASE_LABELS;
|
|
3302
3327
|
exports.BASE_PREFIXES = BASE_PREFIXES;
|
|
@@ -3329,6 +3354,7 @@ exports.calculateCreditUtilization = calculateCreditUtilization;
|
|
|
3329
3354
|
exports.calculateDebtToIncomeRatio = calculateDebtToIncomeRatio;
|
|
3330
3355
|
exports.calculateDepreciationSchedule = calculateDepreciationSchedule;
|
|
3331
3356
|
exports.calculateDiscount = calculateDiscount;
|
|
3357
|
+
exports.calculateDividendYield = calculateDividendYield;
|
|
3332
3358
|
exports.calculateEmi = calculateEmi;
|
|
3333
3359
|
exports.calculateExtraPaymentPayoff = calculateExtraPaymentPayoff;
|
|
3334
3360
|
exports.calculateFreelancerRate = calculateFreelancerRate;
|
package/dist/tools/units.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AbaFederalReserveDistrict, a as AbaRoutingNumberResult, b as AbaRoutingNumberType, c as AmortizationRow, d as AnnuityPayoutInput, e as AnnuityPayoutMode, f as AnnuityPayoutResult, g as AnnuityStructure, h as AprApyDirection, i as AprApyResult, j as AspectRatioResult, k as AudioFileSizeInput, l as AudioFileSizeMode, m as AudioFileSizeResult, B as BASE_LABELS, n as BASE_PREFIXES, o as BYTE_UNITS, p as BarcodeFormat, q as BarcodeValidationResult, r as BaseConvertResult, s as BlendedLoanRateResult, t as BreakEvenInput, v as BreakEvenResult, w as ByteConvertResult, x as ByteUnit, C as COMMON_CURRENCIES, y as COMMON_LOCALES, z as COMMON_PERMISSIONS, D as COMMON_RATIOS, E as COMMON_SIZES, F as COMMON_TAX_RATES, G as COMMON_TIP_PERCENTAGES, H as COMMON_VIEWPORTS, I as CardValidationResult, J as CashBreakdownResult, K as CashChangeResult, L as CashDenominationItem, M as CashRoundingMode, N as CashRoundingResult, O as CdMaturityResult, P as CommissionBreakdownEntry, Q as CommissionInput, R as CommissionResult, S as CommissionTier, T as CompareUnitPricesResult, U as CompoundInterestResult, V as CompoundYearRow, W as CreditAccountInput, X as CreditAccountResult, Y as CreditCardMinimumPaymentResult, Z as CreditUtilizationResult, _ as DebtItemInput, $ as DebtItemResult, a0 as DebtPayoffComparison, a1 as DebtPayoffInput, a2 as DebtPayoffPlanResult, a3 as DebtPayoffScheduleEntry, a4 as DebtPayoffStrategy, a5 as DebtPayoffStrategyResult, a6 as DebtToIncomeRatioResult, a7 as DepreciationMethod, a8 as DepreciationResult, a9 as DepreciationYear, aa as Dimensions, ab as DiscountField, ac as DiscountInput, ad as DiscountResult, ae as
|
|
1
|
+
export { A as AbaFederalReserveDistrict, a as AbaRoutingNumberResult, b as AbaRoutingNumberType, c as AmortizationRow, d as AnnuityPayoutInput, e as AnnuityPayoutMode, f as AnnuityPayoutResult, g as AnnuityStructure, h as AprApyDirection, i as AprApyResult, j as AspectRatioResult, k as AudioFileSizeInput, l as AudioFileSizeMode, m as AudioFileSizeResult, B as BASE_LABELS, n as BASE_PREFIXES, o as BYTE_UNITS, p as BarcodeFormat, q as BarcodeValidationResult, r as BaseConvertResult, s as BlendedLoanRateResult, t as BreakEvenInput, v as BreakEvenResult, w as ByteConvertResult, x as ByteUnit, C as COMMON_CURRENCIES, y as COMMON_LOCALES, z as COMMON_PERMISSIONS, D as COMMON_RATIOS, E as COMMON_SIZES, F as COMMON_TAX_RATES, G as COMMON_TIP_PERCENTAGES, H as COMMON_VIEWPORTS, I as CardValidationResult, J as CashBreakdownResult, K as CashChangeResult, L as CashDenominationItem, M as CashRoundingMode, N as CashRoundingResult, O as CdMaturityResult, P as CommissionBreakdownEntry, Q as CommissionInput, R as CommissionResult, S as CommissionTier, T as CompareUnitPricesResult, U as CompoundInterestResult, V as CompoundYearRow, W as CreditAccountInput, X as CreditAccountResult, Y as CreditCardMinimumPaymentResult, Z as CreditUtilizationResult, _ as DebtItemInput, $ as DebtItemResult, a0 as DebtPayoffComparison, a1 as DebtPayoffInput, a2 as DebtPayoffPlanResult, a3 as DebtPayoffScheduleEntry, a4 as DebtPayoffStrategy, a5 as DebtPayoffStrategyResult, a6 as DebtToIncomeRatioResult, a7 as DepreciationMethod, a8 as DepreciationResult, a9 as DepreciationYear, aa as Dimensions, ab as DiscountField, ac as DiscountInput, ad as DiscountResult, ae as DividendYieldInput, af as DividendYieldResult, ag as DtiTier, ah as EmiResult, ai as EmiTenureUnit, aj as EmiYearlyBreakdownRow, ak as ExtraPaymentPayoffResult, al as FilePermissions, am as FileSizeUnit, an as FormatOptions, ao as FreelancerRateInput, ap as FreelancerRateResult, aq as GPA_GRADE_POINTS, ar as GpaCourse, as as GpaCourseResult, at as GpaResult, au as IbanValidationResult, av as IpConversion, aw as IsbnFormat, ax as IsbnResult, ay as IsinValidationResult, az as LoanBalanceInput, aA as LoanBalanceResult, aB as LoanPrepaymentPenaltyResult, aC as LoanRefinanceResult, aD as LoanResult, aE as MarginMarkupField, aF as MarginMarkupInput, aG as MarginMarkupResult, aH as MortgagePointsResult, aI as MovingAveragePoint, aJ as MovingAverageResult, aK as NegativeAmortizationInput, aL as NegativeAmortizationMonth, aM as NegativeAmortizationResult, aN as NotationStyle, aO as NumberBase, aP as PaybackPeriodInput, aQ as PaybackPeriodResult, aR as PercentChangeDirection, aS as PercentageChangeResult, aT as Permission, aU as PositionSizeInput, aV as PositionSizeResult, aW as PrepaymentPenaltyType, aX as PxConvertResult, aY as RangeIntersectionResult, aZ as RealRateField, a_ as RealRateOfReturnInput, a$ as RealRateOfReturnResult, b0 as RequiredBandwidthResult, b1 as RoiInput, b2 as RoiResult, b3 as RuleOf72Direction, b4 as RuleOf72Result, b5 as SavingsGoalInput, b6 as SavingsGoalMode, b7 as SavingsGoalResult, b8 as SemverVersion, b9 as SimpleInterestResult, ba as SubnetInfo, bb as SuccessiveDiscountResult, bc as SuccessiveDiscountStep, bd as TaxDirection, be as TaxEquivalentYieldDirection, bf as TaxEquivalentYieldResult, bg as TaxResult, bh as TimeValueDirection, bi as TimeValueResult, bj as TimecodeConvertInput, bk as TimecodeConvertResult, bl as TimecodeMode, bm as TipSplitResult, bn as TransferSpeedUnit, bo as TransferTimeResult, bp as USD_DENOMINATIONS, bq as UnitPriceItem, br as UnitPriceResult, bs as UtilizationTier, bt as VideoBitrateInput, bu as VideoBitrateMode, bv as VideoBitrateResult, bw as ViewportConvertResult, bx as VinValidationResult, by as applySuccessiveDiscounts, bz as autoFormat, bA as bumpVersion, bB as calcAspectRatio, bC as calcSubnet, bD as calculateAnnuityPayout, bE as calculateBlendedLoanRate, bF as calculateBreakEven, bG as calculateCashBreakdown, bH as calculateCashRounding, bI as calculateCdMaturity, bJ as calculateChange, bK as calculateCompoundInterest, bL as calculateCreditCardMinimumPayment, bM as calculateCreditUtilization, bN as calculateDebtToIncomeRatio, bO as calculateDepreciationSchedule, bP as calculateDiscount, bQ as calculateDividendYield, bR as calculateEmi, bS as calculateExtraPaymentPayoff, bT as calculateFreelancerRate, bU as calculateGpa, bV as calculateLoan, bW as calculateLoanPrepaymentPenalty, bX as calculateLoanRefinance, bY as calculateMarginMarkup, bZ as calculateMortgagePoints, b_ as calculateMovingAverages, b$ as calculatePaybackPeriod, c0 as calculatePercentageChange, c1 as calculatePositionSize, c2 as calculateRealRateOfReturn, c3 as calculateRequiredBandwidth, c4 as calculateRoi, c5 as calculateRuleOf72, c6 as calculateSalesCommission, c7 as calculateSavingsGoal, c8 as calculateSimpleInterest, c9 as calculateTax, ca as calculateTaxEquivalentYield, cb as calculateTimeValue, cc as calculateTipSplit, cd as calculateTransferTime, ce as calculateVideoBitrate, cf as compareSemver, cg as compareUnitPrices, ch as convert, ci as convertAprApy, cj as convertBytes, ck as convertIp, cl as convertTimecode, cm as coverBox, cn as decimalToIp, co as decimalToIpCidr, cp as describePermissions, cq as detectNegativeAmortization, cr as estimateAudioFileSize, cs as fitIntoBox, ct as formatNumber, cu as formatValue, cv as formatVwValue, cw as formatWithSeparator, cx as gcd, cy as intersectSemverRanges, cz as ipFromBinary, cA as ipFromDecimal, cB as ipFromHex, cC as ipToBinary, cD as ipToDecimal, cE as ipToDecimalCidr, cF as ipToHex, cG as ipToOctal, cH as isValid, cI as isValidCidr, cJ as isValidIp, cK as isValidIpv4, cL as marginToMarkup, cM as markupToMargin, cN as octalToPermissions, cO as parseFileSize, cP as parseInput, cQ as parseNumberString, cR as parseSemver, cS as permissionsToChmod, cT as permissionsToOctal, cU as permissionsToSymbolic, cV as planDebtPayoff, cW as ptToPx, cX as pxToAll, cY as pxToViewport, cZ as remToPx, c_ as satisfiesRange, c$ as scaleByHeight, d0 as scaleByWidth, d1 as sortVersions, d2 as splitSubnet, d3 as symbolicToPermissions, d4 as validateBarcode, d5 as validateCardNumber, d6 as validateIban, d7 as validateIsbn, d8 as validateIsin, d9 as validateRoutingNumber, da as validateVin, db as viewportToPx } from '../units-CmkM7-WZ.cjs';
|
package/dist/tools/units.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AbaFederalReserveDistrict, a as AbaRoutingNumberResult, b as AbaRoutingNumberType, c as AmortizationRow, d as AnnuityPayoutInput, e as AnnuityPayoutMode, f as AnnuityPayoutResult, g as AnnuityStructure, h as AprApyDirection, i as AprApyResult, j as AspectRatioResult, k as AudioFileSizeInput, l as AudioFileSizeMode, m as AudioFileSizeResult, B as BASE_LABELS, n as BASE_PREFIXES, o as BYTE_UNITS, p as BarcodeFormat, q as BarcodeValidationResult, r as BaseConvertResult, s as BlendedLoanRateResult, t as BreakEvenInput, v as BreakEvenResult, w as ByteConvertResult, x as ByteUnit, C as COMMON_CURRENCIES, y as COMMON_LOCALES, z as COMMON_PERMISSIONS, D as COMMON_RATIOS, E as COMMON_SIZES, F as COMMON_TAX_RATES, G as COMMON_TIP_PERCENTAGES, H as COMMON_VIEWPORTS, I as CardValidationResult, J as CashBreakdownResult, K as CashChangeResult, L as CashDenominationItem, M as CashRoundingMode, N as CashRoundingResult, O as CdMaturityResult, P as CommissionBreakdownEntry, Q as CommissionInput, R as CommissionResult, S as CommissionTier, T as CompareUnitPricesResult, U as CompoundInterestResult, V as CompoundYearRow, W as CreditAccountInput, X as CreditAccountResult, Y as CreditCardMinimumPaymentResult, Z as CreditUtilizationResult, _ as DebtItemInput, $ as DebtItemResult, a0 as DebtPayoffComparison, a1 as DebtPayoffInput, a2 as DebtPayoffPlanResult, a3 as DebtPayoffScheduleEntry, a4 as DebtPayoffStrategy, a5 as DebtPayoffStrategyResult, a6 as DebtToIncomeRatioResult, a7 as DepreciationMethod, a8 as DepreciationResult, a9 as DepreciationYear, aa as Dimensions, ab as DiscountField, ac as DiscountInput, ad as DiscountResult, ae as
|
|
1
|
+
export { A as AbaFederalReserveDistrict, a as AbaRoutingNumberResult, b as AbaRoutingNumberType, c as AmortizationRow, d as AnnuityPayoutInput, e as AnnuityPayoutMode, f as AnnuityPayoutResult, g as AnnuityStructure, h as AprApyDirection, i as AprApyResult, j as AspectRatioResult, k as AudioFileSizeInput, l as AudioFileSizeMode, m as AudioFileSizeResult, B as BASE_LABELS, n as BASE_PREFIXES, o as BYTE_UNITS, p as BarcodeFormat, q as BarcodeValidationResult, r as BaseConvertResult, s as BlendedLoanRateResult, t as BreakEvenInput, v as BreakEvenResult, w as ByteConvertResult, x as ByteUnit, C as COMMON_CURRENCIES, y as COMMON_LOCALES, z as COMMON_PERMISSIONS, D as COMMON_RATIOS, E as COMMON_SIZES, F as COMMON_TAX_RATES, G as COMMON_TIP_PERCENTAGES, H as COMMON_VIEWPORTS, I as CardValidationResult, J as CashBreakdownResult, K as CashChangeResult, L as CashDenominationItem, M as CashRoundingMode, N as CashRoundingResult, O as CdMaturityResult, P as CommissionBreakdownEntry, Q as CommissionInput, R as CommissionResult, S as CommissionTier, T as CompareUnitPricesResult, U as CompoundInterestResult, V as CompoundYearRow, W as CreditAccountInput, X as CreditAccountResult, Y as CreditCardMinimumPaymentResult, Z as CreditUtilizationResult, _ as DebtItemInput, $ as DebtItemResult, a0 as DebtPayoffComparison, a1 as DebtPayoffInput, a2 as DebtPayoffPlanResult, a3 as DebtPayoffScheduleEntry, a4 as DebtPayoffStrategy, a5 as DebtPayoffStrategyResult, a6 as DebtToIncomeRatioResult, a7 as DepreciationMethod, a8 as DepreciationResult, a9 as DepreciationYear, aa as Dimensions, ab as DiscountField, ac as DiscountInput, ad as DiscountResult, ae as DividendYieldInput, af as DividendYieldResult, ag as DtiTier, ah as EmiResult, ai as EmiTenureUnit, aj as EmiYearlyBreakdownRow, ak as ExtraPaymentPayoffResult, al as FilePermissions, am as FileSizeUnit, an as FormatOptions, ao as FreelancerRateInput, ap as FreelancerRateResult, aq as GPA_GRADE_POINTS, ar as GpaCourse, as as GpaCourseResult, at as GpaResult, au as IbanValidationResult, av as IpConversion, aw as IsbnFormat, ax as IsbnResult, ay as IsinValidationResult, az as LoanBalanceInput, aA as LoanBalanceResult, aB as LoanPrepaymentPenaltyResult, aC as LoanRefinanceResult, aD as LoanResult, aE as MarginMarkupField, aF as MarginMarkupInput, aG as MarginMarkupResult, aH as MortgagePointsResult, aI as MovingAveragePoint, aJ as MovingAverageResult, aK as NegativeAmortizationInput, aL as NegativeAmortizationMonth, aM as NegativeAmortizationResult, aN as NotationStyle, aO as NumberBase, aP as PaybackPeriodInput, aQ as PaybackPeriodResult, aR as PercentChangeDirection, aS as PercentageChangeResult, aT as Permission, aU as PositionSizeInput, aV as PositionSizeResult, aW as PrepaymentPenaltyType, aX as PxConvertResult, aY as RangeIntersectionResult, aZ as RealRateField, a_ as RealRateOfReturnInput, a$ as RealRateOfReturnResult, b0 as RequiredBandwidthResult, b1 as RoiInput, b2 as RoiResult, b3 as RuleOf72Direction, b4 as RuleOf72Result, b5 as SavingsGoalInput, b6 as SavingsGoalMode, b7 as SavingsGoalResult, b8 as SemverVersion, b9 as SimpleInterestResult, ba as SubnetInfo, bb as SuccessiveDiscountResult, bc as SuccessiveDiscountStep, bd as TaxDirection, be as TaxEquivalentYieldDirection, bf as TaxEquivalentYieldResult, bg as TaxResult, bh as TimeValueDirection, bi as TimeValueResult, bj as TimecodeConvertInput, bk as TimecodeConvertResult, bl as TimecodeMode, bm as TipSplitResult, bn as TransferSpeedUnit, bo as TransferTimeResult, bp as USD_DENOMINATIONS, bq as UnitPriceItem, br as UnitPriceResult, bs as UtilizationTier, bt as VideoBitrateInput, bu as VideoBitrateMode, bv as VideoBitrateResult, bw as ViewportConvertResult, bx as VinValidationResult, by as applySuccessiveDiscounts, bz as autoFormat, bA as bumpVersion, bB as calcAspectRatio, bC as calcSubnet, bD as calculateAnnuityPayout, bE as calculateBlendedLoanRate, bF as calculateBreakEven, bG as calculateCashBreakdown, bH as calculateCashRounding, bI as calculateCdMaturity, bJ as calculateChange, bK as calculateCompoundInterest, bL as calculateCreditCardMinimumPayment, bM as calculateCreditUtilization, bN as calculateDebtToIncomeRatio, bO as calculateDepreciationSchedule, bP as calculateDiscount, bQ as calculateDividendYield, bR as calculateEmi, bS as calculateExtraPaymentPayoff, bT as calculateFreelancerRate, bU as calculateGpa, bV as calculateLoan, bW as calculateLoanPrepaymentPenalty, bX as calculateLoanRefinance, bY as calculateMarginMarkup, bZ as calculateMortgagePoints, b_ as calculateMovingAverages, b$ as calculatePaybackPeriod, c0 as calculatePercentageChange, c1 as calculatePositionSize, c2 as calculateRealRateOfReturn, c3 as calculateRequiredBandwidth, c4 as calculateRoi, c5 as calculateRuleOf72, c6 as calculateSalesCommission, c7 as calculateSavingsGoal, c8 as calculateSimpleInterest, c9 as calculateTax, ca as calculateTaxEquivalentYield, cb as calculateTimeValue, cc as calculateTipSplit, cd as calculateTransferTime, ce as calculateVideoBitrate, cf as compareSemver, cg as compareUnitPrices, ch as convert, ci as convertAprApy, cj as convertBytes, ck as convertIp, cl as convertTimecode, cm as coverBox, cn as decimalToIp, co as decimalToIpCidr, cp as describePermissions, cq as detectNegativeAmortization, cr as estimateAudioFileSize, cs as fitIntoBox, ct as formatNumber, cu as formatValue, cv as formatVwValue, cw as formatWithSeparator, cx as gcd, cy as intersectSemverRanges, cz as ipFromBinary, cA as ipFromDecimal, cB as ipFromHex, cC as ipToBinary, cD as ipToDecimal, cE as ipToDecimalCidr, cF as ipToHex, cG as ipToOctal, cH as isValid, cI as isValidCidr, cJ as isValidIp, cK as isValidIpv4, cL as marginToMarkup, cM as markupToMargin, cN as octalToPermissions, cO as parseFileSize, cP as parseInput, cQ as parseNumberString, cR as parseSemver, cS as permissionsToChmod, cT as permissionsToOctal, cU as permissionsToSymbolic, cV as planDebtPayoff, cW as ptToPx, cX as pxToAll, cY as pxToViewport, cZ as remToPx, c_ as satisfiesRange, c$ as scaleByHeight, d0 as scaleByWidth, d1 as sortVersions, d2 as splitSubnet, d3 as symbolicToPermissions, d4 as validateBarcode, d5 as validateCardNumber, d6 as validateIban, d7 as validateIsbn, d8 as validateIsin, d9 as validateRoutingNumber, da as validateVin, db as viewportToPx } from '../units-CmkM7-WZ.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_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculatePositionSize, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, convertTimecode, coverBox, decimalToIp, decimalToIpCidr, describePermissions, detectNegativeAmortization, estimateAudioFileSize, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, intersectSemverRanges, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateRoutingNumber, validateVin, viewportToPx } from '../chunk-
|
|
1
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateDividendYield, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculatePositionSize, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, convertTimecode, coverBox, decimalToIp, decimalToIpCidr, describePermissions, detectNegativeAmortization, estimateAudioFileSize, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, intersectSemverRanges, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateRoutingNumber, validateVin, viewportToPx } from '../chunk-3LHLFKP7.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
|
@@ -1632,6 +1632,31 @@ interface TimecodeConvertResult {
|
|
|
1632
1632
|
declare function convertTimecode(input: TimecodeConvertInput): TimecodeConvertResult | {
|
|
1633
1633
|
error: string;
|
|
1634
1634
|
};
|
|
1635
|
+
interface DividendYieldInput {
|
|
1636
|
+
annualDividendPerShare: number;
|
|
1637
|
+
sharePrice: number;
|
|
1638
|
+
epsPerShare?: number;
|
|
1639
|
+
}
|
|
1640
|
+
interface DividendYieldResult {
|
|
1641
|
+
annualDividendPerShare: number;
|
|
1642
|
+
sharePrice: number;
|
|
1643
|
+
dividendYieldPercent: number;
|
|
1644
|
+
epsPerShare?: number;
|
|
1645
|
+
payoutRatioPercent?: number;
|
|
1646
|
+
retentionRatioPercent?: number;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* Compute a stock's dividend yield (annual dividend per share / share
|
|
1650
|
+
* price) and, when trailing EPS is given, its payout ratio (dividend /
|
|
1651
|
+
* EPS) and retention ratio (100 - payout ratio, i.e. the share of
|
|
1652
|
+
* earnings kept rather than distributed). A payout ratio over 100% is
|
|
1653
|
+
* valid and reported as-is: it means the company is paying out more in
|
|
1654
|
+
* dividends than it earned. Pure arithmetic over user-supplied numbers,
|
|
1655
|
+
* no live quote feed.
|
|
1656
|
+
*/
|
|
1657
|
+
declare function calculateDividendYield(input: DividendYieldInput): DividendYieldResult | {
|
|
1658
|
+
error: string;
|
|
1659
|
+
};
|
|
1635
1660
|
|
|
1636
1661
|
type units_AbaFederalReserveDistrict = AbaFederalReserveDistrict;
|
|
1637
1662
|
type units_AbaRoutingNumberResult = AbaRoutingNumberResult;
|
|
@@ -1700,6 +1725,8 @@ type units_Dimensions = Dimensions;
|
|
|
1700
1725
|
type units_DiscountField = DiscountField;
|
|
1701
1726
|
type units_DiscountInput = DiscountInput;
|
|
1702
1727
|
type units_DiscountResult = DiscountResult;
|
|
1728
|
+
type units_DividendYieldInput = DividendYieldInput;
|
|
1729
|
+
type units_DividendYieldResult = DividendYieldResult;
|
|
1703
1730
|
type units_DtiTier = DtiTier;
|
|
1704
1731
|
type units_EmiResult = EmiResult;
|
|
1705
1732
|
type units_EmiTenureUnit = EmiTenureUnit;
|
|
@@ -1800,6 +1827,7 @@ declare const units_calculateCreditUtilization: typeof calculateCreditUtilizatio
|
|
|
1800
1827
|
declare const units_calculateDebtToIncomeRatio: typeof calculateDebtToIncomeRatio;
|
|
1801
1828
|
declare const units_calculateDepreciationSchedule: typeof calculateDepreciationSchedule;
|
|
1802
1829
|
declare const units_calculateDiscount: typeof calculateDiscount;
|
|
1830
|
+
declare const units_calculateDividendYield: typeof calculateDividendYield;
|
|
1803
1831
|
declare const units_calculateEmi: typeof calculateEmi;
|
|
1804
1832
|
declare const units_calculateExtraPaymentPayoff: typeof calculateExtraPaymentPayoff;
|
|
1805
1833
|
declare const units_calculateFreelancerRate: typeof calculateFreelancerRate;
|
|
@@ -1888,7 +1916,7 @@ declare const units_validateRoutingNumber: typeof validateRoutingNumber;
|
|
|
1888
1916
|
declare const units_validateVin: typeof validateVin;
|
|
1889
1917
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
1890
1918
|
declare namespace units {
|
|
1891
|
-
export { type units_AbaFederalReserveDistrict as AbaFederalReserveDistrict, type units_AbaRoutingNumberResult as AbaRoutingNumberResult, type units_AbaRoutingNumberType as AbaRoutingNumberType, type units_AmortizationRow as AmortizationRow, type units_AnnuityPayoutInput as AnnuityPayoutInput, type units_AnnuityPayoutMode as AnnuityPayoutMode, type units_AnnuityPayoutResult as AnnuityPayoutResult, type units_AnnuityStructure as AnnuityStructure, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, type units_AudioFileSizeInput as AudioFileSizeInput, type units_AudioFileSizeMode as AudioFileSizeMode, type units_AudioFileSizeResult as AudioFileSizeResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, 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_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CommissionBreakdownEntry as CommissionBreakdownEntry, type units_CommissionInput as CommissionInput, type units_CommissionResult as CommissionResult, type units_CommissionTier as CommissionTier, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditCardMinimumPaymentResult as CreditCardMinimumPaymentResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FileSizeUnit as FileSizeUnit, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanPrepaymentPenaltyResult as LoanPrepaymentPenaltyResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NegativeAmortizationInput as NegativeAmortizationInput, type units_NegativeAmortizationMonth as NegativeAmortizationMonth, type units_NegativeAmortizationResult as NegativeAmortizationResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PositionSizeInput as PositionSizeInput, type units_PositionSizeResult as PositionSizeResult, type units_PrepaymentPenaltyType as PrepaymentPenaltyType, type units_PxConvertResult as PxConvertResult, type units_RangeIntersectionResult as RangeIntersectionResult, type units_RealRateField as RealRateField, type units_RealRateOfReturnInput as RealRateOfReturnInput, type units_RealRateOfReturnResult as RealRateOfReturnResult, type units_RequiredBandwidthResult as RequiredBandwidthResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TimecodeConvertInput as TimecodeConvertInput, type units_TimecodeConvertResult as TimecodeConvertResult, type units_TimecodeMode as TimecodeMode, type units_TipSplitResult as TipSplitResult, type units_TransferSpeedUnit as TransferSpeedUnit, type units_TransferTimeResult as TransferTimeResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateAnnuityPayout as calculateAnnuityPayout, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditCardMinimumPayment as calculateCreditCardMinimumPayment, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanPrepaymentPenalty as calculateLoanPrepaymentPenalty, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculatePositionSize as calculatePositionSize, units_calculateRealRateOfReturn as calculateRealRateOfReturn, units_calculateRequiredBandwidth as calculateRequiredBandwidth, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSalesCommission as calculateSalesCommission, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateTransferTime as calculateTransferTime, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_convertTimecode as convertTimecode, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_detectNegativeAmortization as detectNegativeAmortization, units_estimateAudioFileSize as estimateAudioFileSize, 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_intersectSemverRanges as intersectSemverRanges, 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_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, 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_planDebtPayoff as planDebtPayoff, 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_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateRoutingNumber as validateRoutingNumber, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1919
|
+
export { type units_AbaFederalReserveDistrict as AbaFederalReserveDistrict, type units_AbaRoutingNumberResult as AbaRoutingNumberResult, type units_AbaRoutingNumberType as AbaRoutingNumberType, type units_AmortizationRow as AmortizationRow, type units_AnnuityPayoutInput as AnnuityPayoutInput, type units_AnnuityPayoutMode as AnnuityPayoutMode, type units_AnnuityPayoutResult as AnnuityPayoutResult, type units_AnnuityStructure as AnnuityStructure, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, type units_AudioFileSizeInput as AudioFileSizeInput, type units_AudioFileSizeMode as AudioFileSizeMode, type units_AudioFileSizeResult as AudioFileSizeResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, 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_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CommissionBreakdownEntry as CommissionBreakdownEntry, type units_CommissionInput as CommissionInput, type units_CommissionResult as CommissionResult, type units_CommissionTier as CommissionTier, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditCardMinimumPaymentResult as CreditCardMinimumPaymentResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DividendYieldInput as DividendYieldInput, type units_DividendYieldResult as DividendYieldResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FileSizeUnit as FileSizeUnit, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanPrepaymentPenaltyResult as LoanPrepaymentPenaltyResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NegativeAmortizationInput as NegativeAmortizationInput, type units_NegativeAmortizationMonth as NegativeAmortizationMonth, type units_NegativeAmortizationResult as NegativeAmortizationResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PositionSizeInput as PositionSizeInput, type units_PositionSizeResult as PositionSizeResult, type units_PrepaymentPenaltyType as PrepaymentPenaltyType, type units_PxConvertResult as PxConvertResult, type units_RangeIntersectionResult as RangeIntersectionResult, type units_RealRateField as RealRateField, type units_RealRateOfReturnInput as RealRateOfReturnInput, type units_RealRateOfReturnResult as RealRateOfReturnResult, type units_RequiredBandwidthResult as RequiredBandwidthResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TimecodeConvertInput as TimecodeConvertInput, type units_TimecodeConvertResult as TimecodeConvertResult, type units_TimecodeMode as TimecodeMode, type units_TipSplitResult as TipSplitResult, type units_TransferSpeedUnit as TransferSpeedUnit, type units_TransferTimeResult as TransferTimeResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateAnnuityPayout as calculateAnnuityPayout, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditCardMinimumPayment as calculateCreditCardMinimumPayment, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateDividendYield as calculateDividendYield, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanPrepaymentPenalty as calculateLoanPrepaymentPenalty, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculatePositionSize as calculatePositionSize, units_calculateRealRateOfReturn as calculateRealRateOfReturn, units_calculateRequiredBandwidth as calculateRequiredBandwidth, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSalesCommission as calculateSalesCommission, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateTransferTime as calculateTransferTime, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_convertTimecode as convertTimecode, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_detectNegativeAmortization as detectNegativeAmortization, units_estimateAudioFileSize as estimateAudioFileSize, 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_intersectSemverRanges as intersectSemverRanges, 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_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, 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_planDebtPayoff as planDebtPayoff, 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_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateRoutingNumber as validateRoutingNumber, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1892
1920
|
}
|
|
1893
1921
|
|
|
1894
|
-
export { type DebtItemResult as $, type AbaFederalReserveDistrict as A, BASE_LABELS as B, COMMON_CURRENCIES as C, COMMON_RATIOS as D, COMMON_SIZES as E, COMMON_TAX_RATES as F, COMMON_TIP_PERCENTAGES as G, COMMON_VIEWPORTS as H, type CardValidationResult as I, type CashBreakdownResult as J, type CashChangeResult as K, type CashDenominationItem as L, type CashRoundingMode as M, type CashRoundingResult as N, type CdMaturityResult as O, type CommissionBreakdownEntry as P, type CommissionInput as Q, type CommissionResult as R, type CommissionTier as S, type CompareUnitPricesResult as T, type CompoundInterestResult as U, type CompoundYearRow as V, type CreditAccountInput as W, type CreditAccountResult as X, type CreditCardMinimumPaymentResult as Y, type CreditUtilizationResult as Z, type DebtItemInput as _, type AbaRoutingNumberResult as a, type
|
|
1922
|
+
export { type DebtItemResult as $, type AbaFederalReserveDistrict as A, BASE_LABELS as B, COMMON_CURRENCIES as C, COMMON_RATIOS as D, COMMON_SIZES as E, COMMON_TAX_RATES as F, COMMON_TIP_PERCENTAGES as G, COMMON_VIEWPORTS as H, type CardValidationResult as I, type CashBreakdownResult as J, type CashChangeResult as K, type CashDenominationItem as L, type CashRoundingMode as M, type CashRoundingResult as N, type CdMaturityResult as O, type CommissionBreakdownEntry as P, type CommissionInput as Q, type CommissionResult as R, type CommissionTier as S, type CompareUnitPricesResult as T, type CompoundInterestResult as U, type CompoundYearRow as V, type CreditAccountInput as W, type CreditAccountResult as X, type CreditCardMinimumPaymentResult as Y, type CreditUtilizationResult as Z, type DebtItemInput as _, type AbaRoutingNumberResult as a, type RealRateOfReturnResult as a$, type DebtPayoffComparison as a0, type DebtPayoffInput as a1, type DebtPayoffPlanResult as a2, type DebtPayoffScheduleEntry as a3, type DebtPayoffStrategy as a4, type DebtPayoffStrategyResult as a5, type DebtToIncomeRatioResult as a6, type DepreciationMethod as a7, type DepreciationResult as a8, type DepreciationYear as a9, type LoanBalanceResult as aA, type LoanPrepaymentPenaltyResult as aB, type LoanRefinanceResult as aC, type LoanResult as aD, type MarginMarkupField as aE, type MarginMarkupInput as aF, type MarginMarkupResult as aG, type MortgagePointsResult as aH, type MovingAveragePoint as aI, type MovingAverageResult as aJ, type NegativeAmortizationInput as aK, type NegativeAmortizationMonth as aL, type NegativeAmortizationResult as aM, type NotationStyle as aN, type NumberBase as aO, type PaybackPeriodInput as aP, type PaybackPeriodResult as aQ, type PercentChangeDirection as aR, type PercentageChangeResult as aS, type Permission as aT, type PositionSizeInput as aU, type PositionSizeResult as aV, type PrepaymentPenaltyType as aW, type PxConvertResult as aX, type RangeIntersectionResult as aY, type RealRateField as aZ, type RealRateOfReturnInput as a_, type Dimensions as aa, type DiscountField as ab, type DiscountInput as ac, type DiscountResult as ad, type DividendYieldInput as ae, type DividendYieldResult as af, type DtiTier as ag, type EmiResult as ah, type EmiTenureUnit as ai, type EmiYearlyBreakdownRow as aj, type ExtraPaymentPayoffResult as ak, type FilePermissions as al, type FileSizeUnit as am, type FormatOptions as an, type FreelancerRateInput as ao, type FreelancerRateResult as ap, GPA_GRADE_POINTS as aq, type GpaCourse as ar, type GpaCourseResult as as, type GpaResult as at, type IbanValidationResult as au, type IpConversion as av, type IsbnFormat as aw, type IsbnResult as ax, type IsinValidationResult as ay, type LoanBalanceInput as az, type AbaRoutingNumberType as b, calculatePaybackPeriod as b$, type RequiredBandwidthResult as b0, type RoiInput as b1, type RoiResult as b2, type RuleOf72Direction as b3, type RuleOf72Result as b4, type SavingsGoalInput as b5, type SavingsGoalMode as b6, type SavingsGoalResult as b7, type SemverVersion as b8, type SimpleInterestResult as b9, bumpVersion as bA, calcAspectRatio as bB, calcSubnet as bC, calculateAnnuityPayout as bD, calculateBlendedLoanRate as bE, calculateBreakEven as bF, calculateCashBreakdown as bG, calculateCashRounding as bH, calculateCdMaturity as bI, calculateChange as bJ, calculateCompoundInterest as bK, calculateCreditCardMinimumPayment as bL, calculateCreditUtilization as bM, calculateDebtToIncomeRatio as bN, calculateDepreciationSchedule as bO, calculateDiscount as bP, calculateDividendYield as bQ, calculateEmi as bR, calculateExtraPaymentPayoff as bS, calculateFreelancerRate as bT, calculateGpa as bU, calculateLoan as bV, calculateLoanPrepaymentPenalty as bW, calculateLoanRefinance as bX, calculateMarginMarkup as bY, calculateMortgagePoints as bZ, calculateMovingAverages as b_, type SubnetInfo as ba, type SuccessiveDiscountResult as bb, type SuccessiveDiscountStep as bc, type TaxDirection as bd, type TaxEquivalentYieldDirection as be, type TaxEquivalentYieldResult as bf, type TaxResult as bg, type TimeValueDirection as bh, type TimeValueResult as bi, type TimecodeConvertInput as bj, type TimecodeConvertResult as bk, type TimecodeMode as bl, type TipSplitResult as bm, type TransferSpeedUnit as bn, type TransferTimeResult as bo, USD_DENOMINATIONS as bp, type UnitPriceItem as bq, type UnitPriceResult as br, type UtilizationTier as bs, type VideoBitrateInput as bt, type VideoBitrateMode as bu, type VideoBitrateResult as bv, type ViewportConvertResult as bw, type VinValidationResult as bx, applySuccessiveDiscounts as by, autoFormat as bz, type AmortizationRow as c, scaleByHeight as c$, calculatePercentageChange as c0, calculatePositionSize as c1, calculateRealRateOfReturn as c2, calculateRequiredBandwidth as c3, calculateRoi as c4, calculateRuleOf72 as c5, calculateSalesCommission as c6, calculateSavingsGoal as c7, calculateSimpleInterest as c8, calculateTax as c9, ipFromDecimal as cA, ipFromHex as cB, ipToBinary as cC, ipToDecimal as cD, ipToDecimalCidr as cE, ipToHex as cF, ipToOctal as cG, isValid as cH, isValidCidr as cI, isValidIp as cJ, isValidIpv4 as cK, marginToMarkup as cL, markupToMargin as cM, octalToPermissions as cN, parseFileSize as cO, parseInput as cP, parseNumberString as cQ, parseSemver as cR, permissionsToChmod as cS, permissionsToOctal as cT, permissionsToSymbolic as cU, planDebtPayoff as cV, ptToPx as cW, pxToAll as cX, pxToViewport as cY, remToPx as cZ, satisfiesRange as c_, calculateTaxEquivalentYield as ca, calculateTimeValue as cb, calculateTipSplit as cc, calculateTransferTime as cd, calculateVideoBitrate as ce, compareSemver as cf, compareUnitPrices as cg, convert as ch, convertAprApy as ci, convertBytes as cj, convertIp as ck, convertTimecode as cl, coverBox as cm, decimalToIp as cn, decimalToIpCidr as co, describePermissions as cp, detectNegativeAmortization as cq, estimateAudioFileSize as cr, fitIntoBox as cs, formatNumber as ct, formatValue as cu, formatVwValue as cv, formatWithSeparator as cw, gcd as cx, intersectSemverRanges as cy, ipFromBinary as cz, type AnnuityPayoutInput as d, scaleByWidth as d0, sortVersions as d1, splitSubnet as d2, symbolicToPermissions as d3, validateBarcode as d4, validateCardNumber as d5, validateIban as d6, validateIsbn as d7, validateIsin as d8, validateRoutingNumber as d9, validateVin as da, viewportToPx as db, type AnnuityPayoutMode as e, type AnnuityPayoutResult as f, type AnnuityStructure as g, type AprApyDirection as h, type AprApyResult as i, type AspectRatioResult as j, type AudioFileSizeInput as k, type AudioFileSizeMode as l, type AudioFileSizeResult as m, BASE_PREFIXES as n, BYTE_UNITS as o, type BarcodeFormat as p, type BarcodeValidationResult as q, type BaseConvertResult as r, type BlendedLoanRateResult as s, type BreakEvenInput as t, units as u, type BreakEvenResult as v, type ByteConvertResult as w, type ByteUnit as x, COMMON_LOCALES as y, COMMON_PERMISSIONS as z };
|
|
@@ -1632,6 +1632,31 @@ interface TimecodeConvertResult {
|
|
|
1632
1632
|
declare function convertTimecode(input: TimecodeConvertInput): TimecodeConvertResult | {
|
|
1633
1633
|
error: string;
|
|
1634
1634
|
};
|
|
1635
|
+
interface DividendYieldInput {
|
|
1636
|
+
annualDividendPerShare: number;
|
|
1637
|
+
sharePrice: number;
|
|
1638
|
+
epsPerShare?: number;
|
|
1639
|
+
}
|
|
1640
|
+
interface DividendYieldResult {
|
|
1641
|
+
annualDividendPerShare: number;
|
|
1642
|
+
sharePrice: number;
|
|
1643
|
+
dividendYieldPercent: number;
|
|
1644
|
+
epsPerShare?: number;
|
|
1645
|
+
payoutRatioPercent?: number;
|
|
1646
|
+
retentionRatioPercent?: number;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* Compute a stock's dividend yield (annual dividend per share / share
|
|
1650
|
+
* price) and, when trailing EPS is given, its payout ratio (dividend /
|
|
1651
|
+
* EPS) and retention ratio (100 - payout ratio, i.e. the share of
|
|
1652
|
+
* earnings kept rather than distributed). A payout ratio over 100% is
|
|
1653
|
+
* valid and reported as-is: it means the company is paying out more in
|
|
1654
|
+
* dividends than it earned. Pure arithmetic over user-supplied numbers,
|
|
1655
|
+
* no live quote feed.
|
|
1656
|
+
*/
|
|
1657
|
+
declare function calculateDividendYield(input: DividendYieldInput): DividendYieldResult | {
|
|
1658
|
+
error: string;
|
|
1659
|
+
};
|
|
1635
1660
|
|
|
1636
1661
|
type units_AbaFederalReserveDistrict = AbaFederalReserveDistrict;
|
|
1637
1662
|
type units_AbaRoutingNumberResult = AbaRoutingNumberResult;
|
|
@@ -1700,6 +1725,8 @@ type units_Dimensions = Dimensions;
|
|
|
1700
1725
|
type units_DiscountField = DiscountField;
|
|
1701
1726
|
type units_DiscountInput = DiscountInput;
|
|
1702
1727
|
type units_DiscountResult = DiscountResult;
|
|
1728
|
+
type units_DividendYieldInput = DividendYieldInput;
|
|
1729
|
+
type units_DividendYieldResult = DividendYieldResult;
|
|
1703
1730
|
type units_DtiTier = DtiTier;
|
|
1704
1731
|
type units_EmiResult = EmiResult;
|
|
1705
1732
|
type units_EmiTenureUnit = EmiTenureUnit;
|
|
@@ -1800,6 +1827,7 @@ declare const units_calculateCreditUtilization: typeof calculateCreditUtilizatio
|
|
|
1800
1827
|
declare const units_calculateDebtToIncomeRatio: typeof calculateDebtToIncomeRatio;
|
|
1801
1828
|
declare const units_calculateDepreciationSchedule: typeof calculateDepreciationSchedule;
|
|
1802
1829
|
declare const units_calculateDiscount: typeof calculateDiscount;
|
|
1830
|
+
declare const units_calculateDividendYield: typeof calculateDividendYield;
|
|
1803
1831
|
declare const units_calculateEmi: typeof calculateEmi;
|
|
1804
1832
|
declare const units_calculateExtraPaymentPayoff: typeof calculateExtraPaymentPayoff;
|
|
1805
1833
|
declare const units_calculateFreelancerRate: typeof calculateFreelancerRate;
|
|
@@ -1888,7 +1916,7 @@ declare const units_validateRoutingNumber: typeof validateRoutingNumber;
|
|
|
1888
1916
|
declare const units_validateVin: typeof validateVin;
|
|
1889
1917
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
1890
1918
|
declare namespace units {
|
|
1891
|
-
export { type units_AbaFederalReserveDistrict as AbaFederalReserveDistrict, type units_AbaRoutingNumberResult as AbaRoutingNumberResult, type units_AbaRoutingNumberType as AbaRoutingNumberType, type units_AmortizationRow as AmortizationRow, type units_AnnuityPayoutInput as AnnuityPayoutInput, type units_AnnuityPayoutMode as AnnuityPayoutMode, type units_AnnuityPayoutResult as AnnuityPayoutResult, type units_AnnuityStructure as AnnuityStructure, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, type units_AudioFileSizeInput as AudioFileSizeInput, type units_AudioFileSizeMode as AudioFileSizeMode, type units_AudioFileSizeResult as AudioFileSizeResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, 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_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CommissionBreakdownEntry as CommissionBreakdownEntry, type units_CommissionInput as CommissionInput, type units_CommissionResult as CommissionResult, type units_CommissionTier as CommissionTier, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditCardMinimumPaymentResult as CreditCardMinimumPaymentResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FileSizeUnit as FileSizeUnit, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanPrepaymentPenaltyResult as LoanPrepaymentPenaltyResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NegativeAmortizationInput as NegativeAmortizationInput, type units_NegativeAmortizationMonth as NegativeAmortizationMonth, type units_NegativeAmortizationResult as NegativeAmortizationResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PositionSizeInput as PositionSizeInput, type units_PositionSizeResult as PositionSizeResult, type units_PrepaymentPenaltyType as PrepaymentPenaltyType, type units_PxConvertResult as PxConvertResult, type units_RangeIntersectionResult as RangeIntersectionResult, type units_RealRateField as RealRateField, type units_RealRateOfReturnInput as RealRateOfReturnInput, type units_RealRateOfReturnResult as RealRateOfReturnResult, type units_RequiredBandwidthResult as RequiredBandwidthResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TimecodeConvertInput as TimecodeConvertInput, type units_TimecodeConvertResult as TimecodeConvertResult, type units_TimecodeMode as TimecodeMode, type units_TipSplitResult as TipSplitResult, type units_TransferSpeedUnit as TransferSpeedUnit, type units_TransferTimeResult as TransferTimeResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateAnnuityPayout as calculateAnnuityPayout, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditCardMinimumPayment as calculateCreditCardMinimumPayment, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanPrepaymentPenalty as calculateLoanPrepaymentPenalty, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculatePositionSize as calculatePositionSize, units_calculateRealRateOfReturn as calculateRealRateOfReturn, units_calculateRequiredBandwidth as calculateRequiredBandwidth, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSalesCommission as calculateSalesCommission, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateTransferTime as calculateTransferTime, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_convertTimecode as convertTimecode, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_detectNegativeAmortization as detectNegativeAmortization, units_estimateAudioFileSize as estimateAudioFileSize, 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_intersectSemverRanges as intersectSemverRanges, 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_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, 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_planDebtPayoff as planDebtPayoff, 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_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateRoutingNumber as validateRoutingNumber, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1919
|
+
export { type units_AbaFederalReserveDistrict as AbaFederalReserveDistrict, type units_AbaRoutingNumberResult as AbaRoutingNumberResult, type units_AbaRoutingNumberType as AbaRoutingNumberType, type units_AmortizationRow as AmortizationRow, type units_AnnuityPayoutInput as AnnuityPayoutInput, type units_AnnuityPayoutMode as AnnuityPayoutMode, type units_AnnuityPayoutResult as AnnuityPayoutResult, type units_AnnuityStructure as AnnuityStructure, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, type units_AudioFileSizeInput as AudioFileSizeInput, type units_AudioFileSizeMode as AudioFileSizeMode, type units_AudioFileSizeResult as AudioFileSizeResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, 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_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CommissionBreakdownEntry as CommissionBreakdownEntry, type units_CommissionInput as CommissionInput, type units_CommissionResult as CommissionResult, type units_CommissionTier as CommissionTier, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditCardMinimumPaymentResult as CreditCardMinimumPaymentResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DividendYieldInput as DividendYieldInput, type units_DividendYieldResult as DividendYieldResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FileSizeUnit as FileSizeUnit, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanPrepaymentPenaltyResult as LoanPrepaymentPenaltyResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NegativeAmortizationInput as NegativeAmortizationInput, type units_NegativeAmortizationMonth as NegativeAmortizationMonth, type units_NegativeAmortizationResult as NegativeAmortizationResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PositionSizeInput as PositionSizeInput, type units_PositionSizeResult as PositionSizeResult, type units_PrepaymentPenaltyType as PrepaymentPenaltyType, type units_PxConvertResult as PxConvertResult, type units_RangeIntersectionResult as RangeIntersectionResult, type units_RealRateField as RealRateField, type units_RealRateOfReturnInput as RealRateOfReturnInput, type units_RealRateOfReturnResult as RealRateOfReturnResult, type units_RequiredBandwidthResult as RequiredBandwidthResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TimecodeConvertInput as TimecodeConvertInput, type units_TimecodeConvertResult as TimecodeConvertResult, type units_TimecodeMode as TimecodeMode, type units_TipSplitResult as TipSplitResult, type units_TransferSpeedUnit as TransferSpeedUnit, type units_TransferTimeResult as TransferTimeResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateAnnuityPayout as calculateAnnuityPayout, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditCardMinimumPayment as calculateCreditCardMinimumPayment, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateDividendYield as calculateDividendYield, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanPrepaymentPenalty as calculateLoanPrepaymentPenalty, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculatePositionSize as calculatePositionSize, units_calculateRealRateOfReturn as calculateRealRateOfReturn, units_calculateRequiredBandwidth as calculateRequiredBandwidth, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSalesCommission as calculateSalesCommission, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateTransferTime as calculateTransferTime, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_convertTimecode as convertTimecode, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_detectNegativeAmortization as detectNegativeAmortization, units_estimateAudioFileSize as estimateAudioFileSize, 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_intersectSemverRanges as intersectSemverRanges, 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_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, 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_planDebtPayoff as planDebtPayoff, 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_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateRoutingNumber as validateRoutingNumber, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1892
1920
|
}
|
|
1893
1921
|
|
|
1894
|
-
export { type DebtItemResult as $, type AbaFederalReserveDistrict as A, BASE_LABELS as B, COMMON_CURRENCIES as C, COMMON_RATIOS as D, COMMON_SIZES as E, COMMON_TAX_RATES as F, COMMON_TIP_PERCENTAGES as G, COMMON_VIEWPORTS as H, type CardValidationResult as I, type CashBreakdownResult as J, type CashChangeResult as K, type CashDenominationItem as L, type CashRoundingMode as M, type CashRoundingResult as N, type CdMaturityResult as O, type CommissionBreakdownEntry as P, type CommissionInput as Q, type CommissionResult as R, type CommissionTier as S, type CompareUnitPricesResult as T, type CompoundInterestResult as U, type CompoundYearRow as V, type CreditAccountInput as W, type CreditAccountResult as X, type CreditCardMinimumPaymentResult as Y, type CreditUtilizationResult as Z, type DebtItemInput as _, type AbaRoutingNumberResult as a, type
|
|
1922
|
+
export { type DebtItemResult as $, type AbaFederalReserveDistrict as A, BASE_LABELS as B, COMMON_CURRENCIES as C, COMMON_RATIOS as D, COMMON_SIZES as E, COMMON_TAX_RATES as F, COMMON_TIP_PERCENTAGES as G, COMMON_VIEWPORTS as H, type CardValidationResult as I, type CashBreakdownResult as J, type CashChangeResult as K, type CashDenominationItem as L, type CashRoundingMode as M, type CashRoundingResult as N, type CdMaturityResult as O, type CommissionBreakdownEntry as P, type CommissionInput as Q, type CommissionResult as R, type CommissionTier as S, type CompareUnitPricesResult as T, type CompoundInterestResult as U, type CompoundYearRow as V, type CreditAccountInput as W, type CreditAccountResult as X, type CreditCardMinimumPaymentResult as Y, type CreditUtilizationResult as Z, type DebtItemInput as _, type AbaRoutingNumberResult as a, type RealRateOfReturnResult as a$, type DebtPayoffComparison as a0, type DebtPayoffInput as a1, type DebtPayoffPlanResult as a2, type DebtPayoffScheduleEntry as a3, type DebtPayoffStrategy as a4, type DebtPayoffStrategyResult as a5, type DebtToIncomeRatioResult as a6, type DepreciationMethod as a7, type DepreciationResult as a8, type DepreciationYear as a9, type LoanBalanceResult as aA, type LoanPrepaymentPenaltyResult as aB, type LoanRefinanceResult as aC, type LoanResult as aD, type MarginMarkupField as aE, type MarginMarkupInput as aF, type MarginMarkupResult as aG, type MortgagePointsResult as aH, type MovingAveragePoint as aI, type MovingAverageResult as aJ, type NegativeAmortizationInput as aK, type NegativeAmortizationMonth as aL, type NegativeAmortizationResult as aM, type NotationStyle as aN, type NumberBase as aO, type PaybackPeriodInput as aP, type PaybackPeriodResult as aQ, type PercentChangeDirection as aR, type PercentageChangeResult as aS, type Permission as aT, type PositionSizeInput as aU, type PositionSizeResult as aV, type PrepaymentPenaltyType as aW, type PxConvertResult as aX, type RangeIntersectionResult as aY, type RealRateField as aZ, type RealRateOfReturnInput as a_, type Dimensions as aa, type DiscountField as ab, type DiscountInput as ac, type DiscountResult as ad, type DividendYieldInput as ae, type DividendYieldResult as af, type DtiTier as ag, type EmiResult as ah, type EmiTenureUnit as ai, type EmiYearlyBreakdownRow as aj, type ExtraPaymentPayoffResult as ak, type FilePermissions as al, type FileSizeUnit as am, type FormatOptions as an, type FreelancerRateInput as ao, type FreelancerRateResult as ap, GPA_GRADE_POINTS as aq, type GpaCourse as ar, type GpaCourseResult as as, type GpaResult as at, type IbanValidationResult as au, type IpConversion as av, type IsbnFormat as aw, type IsbnResult as ax, type IsinValidationResult as ay, type LoanBalanceInput as az, type AbaRoutingNumberType as b, calculatePaybackPeriod as b$, type RequiredBandwidthResult as b0, type RoiInput as b1, type RoiResult as b2, type RuleOf72Direction as b3, type RuleOf72Result as b4, type SavingsGoalInput as b5, type SavingsGoalMode as b6, type SavingsGoalResult as b7, type SemverVersion as b8, type SimpleInterestResult as b9, bumpVersion as bA, calcAspectRatio as bB, calcSubnet as bC, calculateAnnuityPayout as bD, calculateBlendedLoanRate as bE, calculateBreakEven as bF, calculateCashBreakdown as bG, calculateCashRounding as bH, calculateCdMaturity as bI, calculateChange as bJ, calculateCompoundInterest as bK, calculateCreditCardMinimumPayment as bL, calculateCreditUtilization as bM, calculateDebtToIncomeRatio as bN, calculateDepreciationSchedule as bO, calculateDiscount as bP, calculateDividendYield as bQ, calculateEmi as bR, calculateExtraPaymentPayoff as bS, calculateFreelancerRate as bT, calculateGpa as bU, calculateLoan as bV, calculateLoanPrepaymentPenalty as bW, calculateLoanRefinance as bX, calculateMarginMarkup as bY, calculateMortgagePoints as bZ, calculateMovingAverages as b_, type SubnetInfo as ba, type SuccessiveDiscountResult as bb, type SuccessiveDiscountStep as bc, type TaxDirection as bd, type TaxEquivalentYieldDirection as be, type TaxEquivalentYieldResult as bf, type TaxResult as bg, type TimeValueDirection as bh, type TimeValueResult as bi, type TimecodeConvertInput as bj, type TimecodeConvertResult as bk, type TimecodeMode as bl, type TipSplitResult as bm, type TransferSpeedUnit as bn, type TransferTimeResult as bo, USD_DENOMINATIONS as bp, type UnitPriceItem as bq, type UnitPriceResult as br, type UtilizationTier as bs, type VideoBitrateInput as bt, type VideoBitrateMode as bu, type VideoBitrateResult as bv, type ViewportConvertResult as bw, type VinValidationResult as bx, applySuccessiveDiscounts as by, autoFormat as bz, type AmortizationRow as c, scaleByHeight as c$, calculatePercentageChange as c0, calculatePositionSize as c1, calculateRealRateOfReturn as c2, calculateRequiredBandwidth as c3, calculateRoi as c4, calculateRuleOf72 as c5, calculateSalesCommission as c6, calculateSavingsGoal as c7, calculateSimpleInterest as c8, calculateTax as c9, ipFromDecimal as cA, ipFromHex as cB, ipToBinary as cC, ipToDecimal as cD, ipToDecimalCidr as cE, ipToHex as cF, ipToOctal as cG, isValid as cH, isValidCidr as cI, isValidIp as cJ, isValidIpv4 as cK, marginToMarkup as cL, markupToMargin as cM, octalToPermissions as cN, parseFileSize as cO, parseInput as cP, parseNumberString as cQ, parseSemver as cR, permissionsToChmod as cS, permissionsToOctal as cT, permissionsToSymbolic as cU, planDebtPayoff as cV, ptToPx as cW, pxToAll as cX, pxToViewport as cY, remToPx as cZ, satisfiesRange as c_, calculateTaxEquivalentYield as ca, calculateTimeValue as cb, calculateTipSplit as cc, calculateTransferTime as cd, calculateVideoBitrate as ce, compareSemver as cf, compareUnitPrices as cg, convert as ch, convertAprApy as ci, convertBytes as cj, convertIp as ck, convertTimecode as cl, coverBox as cm, decimalToIp as cn, decimalToIpCidr as co, describePermissions as cp, detectNegativeAmortization as cq, estimateAudioFileSize as cr, fitIntoBox as cs, formatNumber as ct, formatValue as cu, formatVwValue as cv, formatWithSeparator as cw, gcd as cx, intersectSemverRanges as cy, ipFromBinary as cz, type AnnuityPayoutInput as d, scaleByWidth as d0, sortVersions as d1, splitSubnet as d2, symbolicToPermissions as d3, validateBarcode as d4, validateCardNumber as d5, validateIban as d6, validateIsbn as d7, validateIsin as d8, validateRoutingNumber as d9, validateVin as da, viewportToPx as db, type AnnuityPayoutMode as e, type AnnuityPayoutResult as f, type AnnuityStructure as g, type AprApyDirection as h, type AprApyResult as i, type AspectRatioResult as j, type AudioFileSizeInput as k, type AudioFileSizeMode as l, type AudioFileSizeResult as m, BASE_PREFIXES as n, BYTE_UNITS as o, type BarcodeFormat as p, type BarcodeValidationResult as q, type BaseConvertResult as r, type BlendedLoanRateResult as s, type BreakEvenInput as t, units as u, type BreakEvenResult as v, type ByteConvertResult as w, type ByteUnit as x, COMMON_LOCALES as y, COMMON_PERMISSIONS as z };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.99.0",
|
|
4
|
+
"description": "750 developer utility functions 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",
|
|
7
7
|
"homepage": "https://www.utilix.tech/docs#node-sdk",
|