@talosjs/utils 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +507 -0
  3. package/dist/shared/chunk-0cyfbpyn.js +12 -0
  4. package/dist/shared/chunk-0cyfbpyn.js.map +10 -0
  5. package/dist/shared/chunk-1bb2xts4.js +41 -0
  6. package/dist/shared/chunk-1bb2xts4.js.map +10 -0
  7. package/dist/shared/chunk-8vzcyn6r.js +6 -0
  8. package/dist/shared/chunk-8vzcyn6r.js.map +10 -0
  9. package/dist/shared/chunk-bxbywxsz.js +17 -0
  10. package/dist/shared/chunk-bxbywxsz.js.map +10 -0
  11. package/dist/shared/chunk-m001sqs5.js +15 -0
  12. package/dist/shared/chunk-m001sqs5.js.map +10 -0
  13. package/dist/src/capitalize.d.ts +2 -0
  14. package/dist/src/capitalize.js +8 -0
  15. package/dist/src/capitalize.js.map +9 -0
  16. package/dist/src/dataURLtoFile.d.ts +2 -0
  17. package/dist/src/dataURLtoFile.js +18 -0
  18. package/dist/src/dataURLtoFile.js.map +10 -0
  19. package/dist/src/formatRelativeNumber.d.ts +6 -0
  20. package/dist/src/formatRelativeNumber.js +18 -0
  21. package/dist/src/formatRelativeNumber.js.map +10 -0
  22. package/dist/src/millisecondsToHMS.d.ts +2 -0
  23. package/dist/src/millisecondsToHMS.js +19 -0
  24. package/dist/src/millisecondsToHMS.js.map +10 -0
  25. package/dist/src/parseEnvVars.d.ts +2 -0
  26. package/dist/src/parseEnvVars.js +25 -0
  27. package/dist/src/parseEnvVars.js.map +10 -0
  28. package/dist/src/parseString.d.ts +2 -0
  29. package/dist/src/parseString.js +9 -0
  30. package/dist/src/parseString.js.map +9 -0
  31. package/dist/src/random.d.ts +7 -0
  32. package/dist/src/random.js +21 -0
  33. package/dist/src/random.js.map +10 -0
  34. package/dist/src/secondsToHMS.d.ts +2 -0
  35. package/dist/src/secondsToHMS.js +19 -0
  36. package/dist/src/secondsToHMS.js.map +10 -0
  37. package/dist/src/secondsToMS.d.ts +2 -0
  38. package/dist/src/secondsToMS.js +11 -0
  39. package/dist/src/secondsToMS.js.map +10 -0
  40. package/dist/src/sleep.d.ts +2 -0
  41. package/dist/src/sleep.js +7 -0
  42. package/dist/src/sleep.js.map +10 -0
  43. package/dist/src/splitToWords.d.ts +2 -0
  44. package/dist/src/splitToWords.js +8 -0
  45. package/dist/src/splitToWords.js.map +9 -0
  46. package/dist/src/toCamelCase.d.ts +2 -0
  47. package/dist/src/toCamelCase.js +10 -0
  48. package/dist/src/toCamelCase.js.map +9 -0
  49. package/dist/src/toKebabCase.d.ts +2 -0
  50. package/dist/src/toKebabCase.js +14 -0
  51. package/dist/src/toKebabCase.js.map +10 -0
  52. package/dist/src/toPascalCase.d.ts +2 -0
  53. package/dist/src/toPascalCase.js +17 -0
  54. package/dist/src/toPascalCase.js.map +10 -0
  55. package/dist/src/toSnakeCase.d.ts +2 -0
  56. package/dist/src/toSnakeCase.js +15 -0
  57. package/dist/src/toSnakeCase.js.map +10 -0
  58. package/dist/src/trans.d.ts +21 -0
  59. package/dist/src/trans.js +55 -0
  60. package/dist/src/trans.js.map +10 -0
  61. package/dist/src/trim.d.ts +2 -0
  62. package/dist/src/trim.js +8 -0
  63. package/dist/src/trim.js.map +9 -0
  64. package/package.json +138 -0
package/package.json ADDED
@@ -0,0 +1,138 @@
1
+ {
2
+ "name": "@talosjs/utils",
3
+ "description": "General-purpose utility functions including unique ID generation with nanoid, type guards, and common helper methods",
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "LICENSE",
9
+ "README.md",
10
+ "package.json"
11
+ ],
12
+ "exports": {
13
+ "./capitalize": {
14
+ "import": {
15
+ "types": "./dist/src/capitalize.d.ts",
16
+ "default": "./dist/src/capitalize.js"
17
+ }
18
+ },
19
+ "./dataURLtoFile": {
20
+ "import": {
21
+ "types": "./dist/src/dataURLtoFile.d.ts",
22
+ "default": "./dist/src/dataURLtoFile.js"
23
+ }
24
+ },
25
+ "./formatRelativeNumber": {
26
+ "import": {
27
+ "types": "./dist/src/formatRelativeNumber.d.ts",
28
+ "default": "./dist/src/formatRelativeNumber.js"
29
+ }
30
+ },
31
+ "./millisecondsToHMS": {
32
+ "import": {
33
+ "types": "./dist/src/millisecondsToHMS.d.ts",
34
+ "default": "./dist/src/millisecondsToHMS.js"
35
+ }
36
+ },
37
+ "./parseEnvVars": {
38
+ "import": {
39
+ "types": "./dist/src/parseEnvVars.d.ts",
40
+ "default": "./dist/src/parseEnvVars.js"
41
+ }
42
+ },
43
+ "./parseString": {
44
+ "import": {
45
+ "types": "./dist/src/parseString.d.ts",
46
+ "default": "./dist/src/parseString.js"
47
+ }
48
+ },
49
+ "./random": {
50
+ "import": {
51
+ "types": "./dist/src/random.d.ts",
52
+ "default": "./dist/src/random.js"
53
+ }
54
+ },
55
+ "./secondsToHMS": {
56
+ "import": {
57
+ "types": "./dist/src/secondsToHMS.d.ts",
58
+ "default": "./dist/src/secondsToHMS.js"
59
+ }
60
+ },
61
+ "./secondsToMS": {
62
+ "import": {
63
+ "types": "./dist/src/secondsToMS.d.ts",
64
+ "default": "./dist/src/secondsToMS.js"
65
+ }
66
+ },
67
+ "./sleep": {
68
+ "import": {
69
+ "types": "./dist/src/sleep.d.ts",
70
+ "default": "./dist/src/sleep.js"
71
+ }
72
+ },
73
+ "./splitToWords": {
74
+ "import": {
75
+ "types": "./dist/src/splitToWords.d.ts",
76
+ "default": "./dist/src/splitToWords.js"
77
+ }
78
+ },
79
+ "./toCamelCase": {
80
+ "import": {
81
+ "types": "./dist/src/toCamelCase.d.ts",
82
+ "default": "./dist/src/toCamelCase.js"
83
+ }
84
+ },
85
+ "./toKebabCase": {
86
+ "import": {
87
+ "types": "./dist/src/toKebabCase.d.ts",
88
+ "default": "./dist/src/toKebabCase.js"
89
+ }
90
+ },
91
+ "./toPascalCase": {
92
+ "import": {
93
+ "types": "./dist/src/toPascalCase.d.ts",
94
+ "default": "./dist/src/toPascalCase.js"
95
+ }
96
+ },
97
+ "./toSnakeCase": {
98
+ "import": {
99
+ "types": "./dist/src/toSnakeCase.d.ts",
100
+ "default": "./dist/src/toSnakeCase.js"
101
+ }
102
+ },
103
+ "./trans": {
104
+ "import": {
105
+ "types": "./dist/src/trans.d.ts",
106
+ "default": "./dist/src/trans.js"
107
+ }
108
+ },
109
+ "./trim": {
110
+ "import": {
111
+ "types": "./dist/src/trim.d.ts",
112
+ "default": "./dist/src/trim.js"
113
+ }
114
+ },
115
+ "./package.json": "./package.json"
116
+ },
117
+ "license": "MIT",
118
+ "scripts": {
119
+ "test": "bun test tests",
120
+ "build": "bunup",
121
+ "lint": "tsgo --noEmit && bunx biome lint",
122
+ "npm:publish": "bun publish --tolerate-republish --force --production --access public"
123
+ },
124
+ "dependencies": {
125
+ "nanoid": "^5.1.6"
126
+ },
127
+ "devDependencies": {},
128
+ "keywords": [
129
+ "bun",
130
+ "helpers",
131
+ "nanoid",
132
+ "talos",
133
+ "tools",
134
+ "typescript",
135
+ "utilities",
136
+ "utils"
137
+ ]
138
+ }