@utilix-tech/sdk 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +62 -25
  3. package/SECURITY.md +16 -0
  4. package/dist/{chunk-OKSWDVOM.js → chunk-GX7H6TAX.js} +1 -1
  5. package/dist/{chunk-W4UBLYFU.js → chunk-HFRTZE7T.js} +2 -2
  6. package/dist/{chunk-ROTPLW7T.js → chunk-IPR7FSX4.js} +2 -2
  7. package/dist/chunk-N7C52YGL.js +134 -0
  8. package/dist/{chunk-XST6X3HT.js → chunk-QJE743LY.js} +10 -10
  9. package/dist/{chunk-NSOARQCM.js → chunk-V5S6OJ4A.js} +14 -14
  10. package/dist/{chunk-XXYZLLHI.js → chunk-YBBYFAOV.js} +167 -1
  11. package/dist/index.cjs +327 -29
  12. package/dist/index.d.cts +2 -1
  13. package/dist/index.d.ts +2 -1
  14. package/dist/index.js +7 -6
  15. package/dist/media-DF2cx3pK.d.cts +28 -0
  16. package/dist/media-DF2cx3pK.d.ts +28 -0
  17. package/dist/{text-DqAjPtQ0.d.cts → text-CI7JAl7F.d.cts} +28 -2
  18. package/dist/{text-DqAjPtQ0.d.ts → text-CI7JAl7F.d.ts} +28 -2
  19. package/dist/tools/api.cjs +2 -2
  20. package/dist/tools/api.js +1 -1
  21. package/dist/tools/code.cjs +14 -14
  22. package/dist/tools/code.js +1 -1
  23. package/dist/tools/encoding.cjs +2 -2
  24. package/dist/tools/encoding.js +1 -1
  25. package/dist/tools/media.cjs +130 -0
  26. package/dist/tools/media.d.cts +1 -0
  27. package/dist/tools/media.d.ts +1 -0
  28. package/dist/tools/media.js +2 -0
  29. package/dist/tools/misc.cjs +1 -1
  30. package/dist/tools/misc.js +1 -1
  31. package/dist/tools/text.cjs +166 -0
  32. package/dist/tools/text.d.cts +1 -1
  33. package/dist/tools/text.d.ts +1 -1
  34. package/dist/tools/text.js +1 -1
  35. package/dist/tools/units.cjs +10 -10
  36. package/dist/tools/units.js +1 -1
  37. package/package.json +23 -4
@@ -1 +1 @@
1
- export { A as AsciiFont, a as AsciiOptions, C as CASE_FORMATS, b as CaseFormat, c as ConvertOptions, D as DEFAULT_CONVERT_OPTIONS, d as DiffFile, e as DiffHunk, f as DiffLine, g as DiffResult, h as DiffType, i as DiffViewerLine, E as ESCAPE_MODES, j as EscapeMode, L as LINE_OPS, k as LineOp, l as LineType, m as LoremUnit, M as MORSE_CODE, n as MarkdownResult, o as MorseOptions, P as ParsedDiff, p as ParsedTable, R as ReadabilityScore, S as SlugSeparator, T as TableOptions, q as TextAnalysis, W as WordCountResult, r as addBorder, s as analyzeText, u as applyOp, v as applyOps, w as centerText, x as convertAll, y as convertCase, z as countWords, B as csvToHtml, F as csvToMarkdown, G as detectDelimiter, H as diffLines, I as diffLinesSimple, J as diffStats, K as escapeAll, N as escapeString, O as extractHeadings, Q as formatReadingTime, U as generate, V as generateDiff, X as generateHtmlTable, Y as generateMarkdownTable, Z as generateParagraphs, _ as generateSentences, $ as generateWords, a0 as getAvailableFonts, a1 as getMorseForChar, a2 as getMorseTiming, a3 as htmlToMarkdown, a4 as isValidMorse, a5 as markdownToHtml, a6 as morseToText, a7 as numberToOrdinal, a8 as numberToRoman, a9 as numberToWords, aa as ordinalWords, ab as parseDiff, ac as parseTableData, ad as readabilityScore, ae as renderMarkdown, af as romanToNumber, ag as sentenceCount, ah as slugify, ai as slugifyAll, aj as syllableCount, ak as textToAscii, al as textToMorse, am as unescapeString, an as wordFrequency } from '../text-DqAjPtQ0.cjs';
1
+ export { A as AsciiFont, a as AsciiOptions, C as CASE_FORMATS, b as CaseFormat, c as ConvertOptions, D as DEFAULT_CONVERT_OPTIONS, d as DiffFile, e as DiffHunk, f as DiffLine, g as DiffResult, h as DiffType, i as DiffViewerLine, E as ESCAPE_MODES, j as EscapeMode, L as LINE_OPS, k as LineOp, l as LineType, m as LoremUnit, M as MORSE_CODE, n as MarkdownResult, o as MorseOptions, P as ParsedDiff, p as ParsedTable, q as PassiveVoiceMatch, r as PassiveVoiceResult, s as PassiveVoiceSentence, R as ReadabilityScore, S as SlugSeparator, T as TableOptions, u as TextAnalysis, W as WordCountResult, v as addBorder, w as analyzeText, x as applyOp, y as applyOps, z as centerText, B as convertAll, F as convertCase, G as countWords, H as csvToHtml, I as csvToMarkdown, J as detectDelimiter, K as detectPassiveVoice, N as diffLines, O as diffLinesSimple, Q as diffStats, U as escapeAll, V as escapeString, X as extractHeadings, Y as formatReadingTime, Z as generate, _ as generateDiff, $ as generateHtmlTable, a0 as generateMarkdownTable, a1 as generateParagraphs, a2 as generateSentences, a3 as generateWords, a4 as getAvailableFonts, a5 as getMorseForChar, a6 as getMorseTiming, a7 as htmlToMarkdown, a8 as isValidMorse, a9 as markdownToHtml, aa as morseToText, ab as numberToOrdinal, ac as numberToRoman, ad as numberToWords, ae as ordinalWords, af as parseDiff, ag as parseTableData, ah as readabilityScore, ai as renderMarkdown, aj as romanToNumber, ak as sentenceCount, al as slugify, am as slugifyAll, an as syllableCount, ao as textToAscii, ap as textToMorse, aq as unescapeString, ar as wordFrequency } from '../text-CI7JAl7F.cjs';
@@ -1 +1 @@
1
- export { A as AsciiFont, a as AsciiOptions, C as CASE_FORMATS, b as CaseFormat, c as ConvertOptions, D as DEFAULT_CONVERT_OPTIONS, d as DiffFile, e as DiffHunk, f as DiffLine, g as DiffResult, h as DiffType, i as DiffViewerLine, E as ESCAPE_MODES, j as EscapeMode, L as LINE_OPS, k as LineOp, l as LineType, m as LoremUnit, M as MORSE_CODE, n as MarkdownResult, o as MorseOptions, P as ParsedDiff, p as ParsedTable, R as ReadabilityScore, S as SlugSeparator, T as TableOptions, q as TextAnalysis, W as WordCountResult, r as addBorder, s as analyzeText, u as applyOp, v as applyOps, w as centerText, x as convertAll, y as convertCase, z as countWords, B as csvToHtml, F as csvToMarkdown, G as detectDelimiter, H as diffLines, I as diffLinesSimple, J as diffStats, K as escapeAll, N as escapeString, O as extractHeadings, Q as formatReadingTime, U as generate, V as generateDiff, X as generateHtmlTable, Y as generateMarkdownTable, Z as generateParagraphs, _ as generateSentences, $ as generateWords, a0 as getAvailableFonts, a1 as getMorseForChar, a2 as getMorseTiming, a3 as htmlToMarkdown, a4 as isValidMorse, a5 as markdownToHtml, a6 as morseToText, a7 as numberToOrdinal, a8 as numberToRoman, a9 as numberToWords, aa as ordinalWords, ab as parseDiff, ac as parseTableData, ad as readabilityScore, ae as renderMarkdown, af as romanToNumber, ag as sentenceCount, ah as slugify, ai as slugifyAll, aj as syllableCount, ak as textToAscii, al as textToMorse, am as unescapeString, an as wordFrequency } from '../text-DqAjPtQ0.js';
1
+ export { A as AsciiFont, a as AsciiOptions, C as CASE_FORMATS, b as CaseFormat, c as ConvertOptions, D as DEFAULT_CONVERT_OPTIONS, d as DiffFile, e as DiffHunk, f as DiffLine, g as DiffResult, h as DiffType, i as DiffViewerLine, E as ESCAPE_MODES, j as EscapeMode, L as LINE_OPS, k as LineOp, l as LineType, m as LoremUnit, M as MORSE_CODE, n as MarkdownResult, o as MorseOptions, P as ParsedDiff, p as ParsedTable, q as PassiveVoiceMatch, r as PassiveVoiceResult, s as PassiveVoiceSentence, R as ReadabilityScore, S as SlugSeparator, T as TableOptions, u as TextAnalysis, W as WordCountResult, v as addBorder, w as analyzeText, x as applyOp, y as applyOps, z as centerText, B as convertAll, F as convertCase, G as countWords, H as csvToHtml, I as csvToMarkdown, J as detectDelimiter, K as detectPassiveVoice, N as diffLines, O as diffLinesSimple, Q as diffStats, U as escapeAll, V as escapeString, X as extractHeadings, Y as formatReadingTime, Z as generate, _ as generateDiff, $ as generateHtmlTable, a0 as generateMarkdownTable, a1 as generateParagraphs, a2 as generateSentences, a3 as generateWords, a4 as getAvailableFonts, a5 as getMorseForChar, a6 as getMorseTiming, a7 as htmlToMarkdown, a8 as isValidMorse, a9 as markdownToHtml, aa as morseToText, ab as numberToOrdinal, ac as numberToRoman, ad as numberToWords, ae as ordinalWords, af as parseDiff, ag as parseTableData, ah as readabilityScore, ai as renderMarkdown, aj as romanToNumber, ak as sentenceCount, al as slugify, am as slugifyAll, an as syllableCount, ao as textToAscii, ap as textToMorse, aq as unescapeString, ar as wordFrequency } from '../text-CI7JAl7F.js';
@@ -1,2 +1,2 @@
1
- export { CASE_FORMATS, DEFAULT_CONVERT_OPTIONS, ESCAPE_MODES, LINE_OPS, MORSE_CODE, addBorder, analyzeText, applyOp, applyOps, centerText, convertAll, convertCase, countWords, csvToHtml, csvToMarkdown, detectDelimiter, diffLines, diffLinesSimple, diffStats, escapeAll, escapeString, extractHeadings, formatReadingTime, generate, generateDiff, generateHtmlTable, generateMarkdownTable, generateParagraphs, generateSentences, generateWords, getAvailableFonts, getMorseForChar, getMorseTiming, htmlToMarkdown, isValidMorse, markdownToHtml, morseToText, numberToOrdinal, numberToRoman, numberToWords, ordinalWords, parseDiff, parseTableData, readabilityScore, renderMarkdown, romanToNumber, sentenceCount, slugify, slugifyAll, syllableCount, textToAscii, textToMorse, unescapeString, wordFrequency } from '../chunk-XXYZLLHI.js';
1
+ export { CASE_FORMATS, DEFAULT_CONVERT_OPTIONS, ESCAPE_MODES, LINE_OPS, MORSE_CODE, addBorder, analyzeText, applyOp, applyOps, centerText, convertAll, convertCase, countWords, csvToHtml, csvToMarkdown, detectDelimiter, detectPassiveVoice, diffLines, diffLinesSimple, diffStats, escapeAll, escapeString, extractHeadings, formatReadingTime, generate, generateDiff, generateHtmlTable, generateMarkdownTable, generateParagraphs, generateSentences, generateWords, getAvailableFonts, getMorseForChar, getMorseTiming, htmlToMarkdown, isValidMorse, markdownToHtml, morseToText, numberToOrdinal, numberToRoman, numberToWords, ordinalWords, parseDiff, parseTableData, readabilityScore, renderMarkdown, romanToNumber, sentenceCount, slugify, slugifyAll, syllableCount, textToAscii, textToMorse, unescapeString, wordFrequency } from '../chunk-YBBYFAOV.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -21,16 +21,16 @@ function formatValue(value, unit, decimals = 4) {
21
21
  return `${value.toFixed(decimals)}${unit}`;
22
22
  }
23
23
  var COMMON_SIZES = [
24
- { px: 8, label: "8px \u2014 Extra small spacing / icon size" },
25
- { px: 12, label: "12px \u2014 Small text / caption" },
26
- { px: 14, label: "14px \u2014 Body small / secondary text" },
27
- { px: 16, label: "16px \u2014 Base font size / body text" },
28
- { px: 18, label: "18px \u2014 Body large / lead text" },
29
- { px: 20, label: "20px \u2014 Subheading / large body" },
30
- { px: 24, label: "24px \u2014 H4 / section title" },
31
- { px: 32, label: "32px \u2014 H3 / card heading" },
32
- { px: 48, label: "48px \u2014 H2 / page section heading" },
33
- { px: 64, label: "64px \u2014 H1 / hero heading" }
24
+ { px: 8, label: "8px: Extra small spacing / icon size" },
25
+ { px: 12, label: "12px: Small text / caption" },
26
+ { px: 14, label: "14px: Body small / secondary text" },
27
+ { px: 16, label: "16px: Base font size / body text" },
28
+ { px: 18, label: "18px: Body large / lead text" },
29
+ { px: 20, label: "20px: Subheading / large body" },
30
+ { px: 24, label: "24px: H4 / section title" },
31
+ { px: 32, label: "32px: H3 / card heading" },
32
+ { px: 48, label: "48px: H2 / page section heading" },
33
+ { px: 64, label: "64px: H1 / hero heading" }
34
34
  ];
35
35
  function pxToViewport(px, viewportWidth = 1440, viewportHeight = 900) {
36
36
  const vw = parseFloat((px / viewportWidth * 100).toFixed(4));
@@ -1,2 +1,2 @@
1
- export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_VIEWPORTS, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, compareSemver, convert, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, viewportToPx } from '../chunk-XST6X3HT.js';
1
+ export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_VIEWPORTS, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, compareSemver, convert, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, viewportToPx } from '../chunk-QJE743LY.js';
2
2
  import '../chunk-MLKGABMK.js';
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@utilix-tech/sdk",
3
- "version": "0.2.0",
4
- "description": "100+ developer utility tools for Node.js JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
3
+ "version": "0.3.1",
4
+ "description": "140+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",
7
- "homepage": "https://utilix.tech",
7
+ "homepage": "https://www.utilix.tech/docs#node-sdk",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/utilix-tech/utilix-sdk.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/utilix-tech/utilix-sdk/issues"
14
+ },
8
15
  "keywords": [
9
16
  "developer-tools",
10
17
  "utilities",
@@ -16,6 +23,11 @@
16
23
  "network",
17
24
  "sdk",
18
25
  "devtools",
26
+ "typescript",
27
+ "jwt",
28
+ "regex",
29
+ "uuid",
30
+ "api-client",
19
31
  "utilix"
20
32
  ],
21
33
  "engines": {
@@ -105,12 +117,19 @@
105
117
  "import": "./dist/tools/ai_agent.js",
106
118
  "require": "./dist/tools/ai_agent.cjs",
107
119
  "types": "./dist/tools/ai_agent.d.ts"
120
+ },
121
+ "./media": {
122
+ "import": "./dist/tools/media.js",
123
+ "require": "./dist/tools/media.cjs",
124
+ "types": "./dist/tools/media.d.ts"
108
125
  }
109
126
  },
110
127
  "files": [
111
128
  "dist",
112
129
  "README.md",
113
- "LICENSE"
130
+ "LICENSE",
131
+ "CHANGELOG.md",
132
+ "SECURITY.md"
114
133
  ],
115
134
  "scripts": {
116
135
  "build": "tsup",