@wtasnorg/node-lib 0.0.7 → 0.0.9

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/changelog.txt +26 -0
  2. package/dev_checklist.txt +56 -0
  3. package/docs/README.md +15 -32
  4. package/docs/docs.json +916 -240
  5. package/docs/functions/createFindDirectories.md +2 -2
  6. package/docs/functions/decode.md +49 -0
  7. package/docs/functions/encode.md +45 -0
  8. package/docs/functions/hello.md +2 -2
  9. package/docs/functions/parseUserAgent.md +42 -0
  10. package/docs/functions/pojo.md +2 -2
  11. package/docs/interfaces/FileSystemDependencies.md +9 -9
  12. package/docs/interfaces/FindDirectoriesOptions.md +8 -8
  13. package/docs/interfaces/UserAgentInfo.md +61 -0
  14. package/docs/type-aliases/Base64CharsetType.md +13 -0
  15. package/docs/variables/Base64Charset.md +17 -0
  16. package/eslint.config.js +7 -2
  17. package/gen-docs/001_base64_refine.txt +50 -0
  18. package/gen-docs/001_commands.txt +44 -0
  19. package/gen-docs/001_coverage.txt +43 -0
  20. package/gen-docs/001_env.txt +33 -0
  21. package/gen-docs/001_lint.txt +40 -0
  22. package/gen-docs/001_state.txt +58 -0
  23. package/gen-docs/002_api.txt +34 -0
  24. package/gen-docs/002_deps.txt +46 -0
  25. package/gen-docs/002_errors.txt +34 -0
  26. package/gen-docs/002_naming.txt +36 -0
  27. package/gen-docs/002_notes.txt +20 -0
  28. package/gen-docs/002_purity.txt +36 -0
  29. package/gen-docs/002_scope.txt +28 -0
  30. package/gen-docs/002_srp.txt +34 -0
  31. package/gen-sec/001_base64_security.txt +75 -0
  32. package/gen-sec/001_commands.txt +65 -0
  33. package/gen-sec/001_env.txt +28 -0
  34. package/gen-sec/001_findings.txt +63 -0
  35. package/gen-sec/001_inventory.txt +41 -0
  36. package/gen-sec/001_owasp.txt +78 -0
  37. package/gen-sec/001_scope.txt +44 -0
  38. package/package.json +3 -2
  39. package/{README.md → readme.txt} +3 -1
  40. package/src/base64.d.ts +58 -0
  41. package/src/base64.js +138 -0
  42. package/src/base64.test.d.ts +2 -0
  43. package/src/base64.test.js +106 -0
  44. package/src/base64.test.ts +125 -0
  45. package/src/base64.ts +163 -0
  46. package/src/find.d.ts +4 -4
  47. package/src/find.js +12 -6
  48. package/src/find.ts +10 -10
  49. package/src/index.d.ts +6 -2
  50. package/src/index.js +3 -1
  51. package/src/index.ts +11 -1
  52. package/src/pojo.js +1 -1
  53. package/src/pojo.test.js +1 -3
  54. package/src/pojo.test.ts +2 -1
  55. package/src/pojo.ts +1 -1
  56. package/src/user-agent.d.ts +48 -0
  57. package/src/user-agent.js +189 -0
  58. package/src/user-agent.test.d.ts +2 -0
  59. package/src/user-agent.test.js +54 -0
  60. package/src/user-agent.test.ts +60 -0
  61. package/src/user-agent.ts +199 -0
  62. package/DEV_CHECKLIST.md +0 -15
  63. package/docs/_media/LICENSE +0 -21
  64. package/docs/globals.md +0 -16
package/docs/docs.json CHANGED
@@ -7,14 +7,14 @@
7
7
  "flags": {},
8
8
  "children": [
9
9
  {
10
- "id": 27,
10
+ "id": 39,
11
11
  "name": "FileSystemDependencies",
12
12
  "variant": "declaration",
13
13
  "kind": 256,
14
14
  "flags": {},
15
15
  "children": [
16
16
  {
17
- "id": 28,
17
+ "id": 40,
18
18
  "name": "readdir",
19
19
  "variant": "declaration",
20
20
  "kind": 1024,
@@ -24,13 +24,13 @@
24
24
  "fileName": "find.ts",
25
25
  "line": 4,
26
26
  "character": 4,
27
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
27
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
28
28
  }
29
29
  ],
30
30
  "type": {
31
31
  "type": "reflection",
32
32
  "declaration": {
33
- "id": 29,
33
+ "id": 41,
34
34
  "name": "__type",
35
35
  "variant": "declaration",
36
36
  "kind": 65536,
@@ -40,12 +40,12 @@
40
40
  "fileName": "find.ts",
41
41
  "line": 4,
42
42
  "character": 13,
43
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
43
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
44
44
  }
45
45
  ],
46
46
  "signatures": [
47
47
  {
48
- "id": 30,
48
+ "id": 42,
49
49
  "name": "__type",
50
50
  "variant": "signature",
51
51
  "kind": 4096,
@@ -55,13 +55,13 @@
55
55
  "fileName": "find.ts",
56
56
  "line": 4,
57
57
  "character": 13,
58
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
58
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
59
59
  }
60
60
  ],
61
61
  "parameters": [
62
62
  {
63
- "id": 31,
64
- "name": "path",
63
+ "id": 43,
64
+ "name": "_path",
65
65
  "variant": "param",
66
66
  "kind": 32768,
67
67
  "flags": {},
@@ -71,22 +71,22 @@
71
71
  }
72
72
  },
73
73
  {
74
- "id": 32,
75
- "name": "opts",
74
+ "id": 44,
75
+ "name": "_opts",
76
76
  "variant": "param",
77
77
  "kind": 32768,
78
78
  "flags": {},
79
79
  "type": {
80
80
  "type": "reflection",
81
81
  "declaration": {
82
- "id": 33,
82
+ "id": 45,
83
83
  "name": "__type",
84
84
  "variant": "declaration",
85
85
  "kind": 65536,
86
86
  "flags": {},
87
87
  "children": [
88
88
  {
89
- "id": 34,
89
+ "id": 46,
90
90
  "name": "withFileTypes",
91
91
  "variant": "declaration",
92
92
  "kind": 1024,
@@ -95,8 +95,8 @@
95
95
  {
96
96
  "fileName": "find.ts",
97
97
  "line": 4,
98
- "character": 36,
99
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
98
+ "character": 38,
99
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
100
100
  }
101
101
  ],
102
102
  "type": {
@@ -109,7 +109,7 @@
109
109
  {
110
110
  "title": "Properties",
111
111
  "children": [
112
- 34
112
+ 46
113
113
  ]
114
114
  }
115
115
  ],
@@ -117,8 +117,8 @@
117
117
  {
118
118
  "fileName": "find.ts",
119
119
  "line": 4,
120
- "character": 34,
121
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
120
+ "character": 36,
121
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
122
122
  }
123
123
  ]
124
124
  }
@@ -138,14 +138,14 @@
138
138
  "elementType": {
139
139
  "type": "reflection",
140
140
  "declaration": {
141
- "id": 35,
141
+ "id": 47,
142
142
  "name": "__type",
143
143
  "variant": "declaration",
144
144
  "kind": 65536,
145
145
  "flags": {},
146
146
  "children": [
147
147
  {
148
- "id": 36,
148
+ "id": 48,
149
149
  "name": "name",
150
150
  "variant": "declaration",
151
151
  "kind": 1024,
@@ -154,8 +154,8 @@
154
154
  {
155
155
  "fileName": "find.ts",
156
156
  "line": 4,
157
- "character": 72,
158
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
157
+ "character": 74,
158
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
159
159
  }
160
160
  ],
161
161
  "type": {
@@ -164,7 +164,7 @@
164
164
  }
165
165
  },
166
166
  {
167
- "id": 37,
167
+ "id": 49,
168
168
  "name": "isDirectory",
169
169
  "variant": "declaration",
170
170
  "kind": 2048,
@@ -173,13 +173,13 @@
173
173
  {
174
174
  "fileName": "find.ts",
175
175
  "line": 4,
176
- "character": 86,
177
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
176
+ "character": 88,
177
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
178
178
  }
179
179
  ],
180
180
  "signatures": [
181
181
  {
182
- "id": 38,
182
+ "id": 50,
183
183
  "name": "isDirectory",
184
184
  "variant": "signature",
185
185
  "kind": 4096,
@@ -188,8 +188,8 @@
188
188
  {
189
189
  "fileName": "find.ts",
190
190
  "line": 4,
191
- "character": 86,
192
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
191
+ "character": 88,
192
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
193
193
  }
194
194
  ],
195
195
  "type": {
@@ -204,13 +204,13 @@
204
204
  {
205
205
  "title": "Properties",
206
206
  "children": [
207
- 36
207
+ 48
208
208
  ]
209
209
  },
210
210
  {
211
211
  "title": "Methods",
212
212
  "children": [
213
- 37
213
+ 49
214
214
  ]
215
215
  }
216
216
  ],
@@ -218,8 +218,8 @@
218
218
  {
219
219
  "fileName": "find.ts",
220
220
  "line": 4,
221
- "character": 70,
222
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L4"
221
+ "character": 72,
222
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L4"
223
223
  }
224
224
  ]
225
225
  }
@@ -235,7 +235,7 @@
235
235
  }
236
236
  },
237
237
  {
238
- "id": 39,
238
+ "id": 51,
239
239
  "name": "stat",
240
240
  "variant": "declaration",
241
241
  "kind": 1024,
@@ -245,13 +245,13 @@
245
245
  "fileName": "find.ts",
246
246
  "line": 5,
247
247
  "character": 4,
248
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
248
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
249
249
  }
250
250
  ],
251
251
  "type": {
252
252
  "type": "reflection",
253
253
  "declaration": {
254
- "id": 40,
254
+ "id": 52,
255
255
  "name": "__type",
256
256
  "variant": "declaration",
257
257
  "kind": 65536,
@@ -261,12 +261,12 @@
261
261
  "fileName": "find.ts",
262
262
  "line": 5,
263
263
  "character": 10,
264
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
264
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
265
265
  }
266
266
  ],
267
267
  "signatures": [
268
268
  {
269
- "id": 41,
269
+ "id": 53,
270
270
  "name": "__type",
271
271
  "variant": "signature",
272
272
  "kind": 4096,
@@ -276,13 +276,13 @@
276
276
  "fileName": "find.ts",
277
277
  "line": 5,
278
278
  "character": 10,
279
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
279
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
280
280
  }
281
281
  ],
282
282
  "parameters": [
283
283
  {
284
- "id": 42,
285
- "name": "path",
284
+ "id": 54,
285
+ "name": "_path",
286
286
  "variant": "param",
287
287
  "kind": 32768,
288
288
  "flags": {},
@@ -303,14 +303,14 @@
303
303
  {
304
304
  "type": "reflection",
305
305
  "declaration": {
306
- "id": 43,
306
+ "id": 55,
307
307
  "name": "__type",
308
308
  "variant": "declaration",
309
309
  "kind": 65536,
310
310
  "flags": {},
311
311
  "children": [
312
312
  {
313
- "id": 44,
313
+ "id": 56,
314
314
  "name": "isDirectory",
315
315
  "variant": "declaration",
316
316
  "kind": 2048,
@@ -319,13 +319,13 @@
319
319
  {
320
320
  "fileName": "find.ts",
321
321
  "line": 5,
322
- "character": 38,
323
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
322
+ "character": 39,
323
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
324
324
  }
325
325
  ],
326
326
  "signatures": [
327
327
  {
328
- "id": 45,
328
+ "id": 57,
329
329
  "name": "isDirectory",
330
330
  "variant": "signature",
331
331
  "kind": 4096,
@@ -334,8 +334,8 @@
334
334
  {
335
335
  "fileName": "find.ts",
336
336
  "line": 5,
337
- "character": 38,
338
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
337
+ "character": 39,
338
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
339
339
  }
340
340
  ],
341
341
  "type": {
@@ -350,7 +350,7 @@
350
350
  {
351
351
  "title": "Methods",
352
352
  "children": [
353
- 44
353
+ 56
354
354
  ]
355
355
  }
356
356
  ],
@@ -358,8 +358,8 @@
358
358
  {
359
359
  "fileName": "find.ts",
360
360
  "line": 5,
361
- "character": 36,
362
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L5"
361
+ "character": 37,
362
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L5"
363
363
  }
364
364
  ]
365
365
  }
@@ -378,8 +378,8 @@
378
378
  {
379
379
  "title": "Properties",
380
380
  "children": [
381
- 28,
382
- 39
381
+ 40,
382
+ 51
383
383
  ]
384
384
  }
385
385
  ],
@@ -388,19 +388,19 @@
388
388
  "fileName": "find.ts",
389
389
  "line": 3,
390
390
  "character": 10,
391
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L3"
391
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L3"
392
392
  }
393
393
  ]
394
394
  },
395
395
  {
396
- "id": 14,
396
+ "id": 26,
397
397
  "name": "FindDirectoriesOptions",
398
398
  "variant": "declaration",
399
399
  "kind": 256,
400
400
  "flags": {},
401
401
  "children": [
402
402
  {
403
- "id": 17,
403
+ "id": 29,
404
404
  "name": "allowlist",
405
405
  "variant": "declaration",
406
406
  "kind": 1024,
@@ -412,7 +412,7 @@
412
412
  "fileName": "find.ts",
413
413
  "line": 11,
414
414
  "character": 4,
415
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L11"
415
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L11"
416
416
  }
417
417
  ],
418
418
  "type": {
@@ -428,7 +428,7 @@
428
428
  {
429
429
  "type": "reflection",
430
430
  "declaration": {
431
- "id": 18,
431
+ "id": 30,
432
432
  "name": "__type",
433
433
  "variant": "declaration",
434
434
  "kind": 65536,
@@ -438,12 +438,12 @@
438
438
  "fileName": "find.ts",
439
439
  "line": 11,
440
440
  "character": 28,
441
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L11"
441
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L11"
442
442
  }
443
443
  ],
444
444
  "signatures": [
445
445
  {
446
- "id": 19,
446
+ "id": 31,
447
447
  "name": "__type",
448
448
  "variant": "signature",
449
449
  "kind": 4096,
@@ -453,13 +453,13 @@
453
453
  "fileName": "find.ts",
454
454
  "line": 11,
455
455
  "character": 28,
456
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L11"
456
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L11"
457
457
  }
458
458
  ],
459
459
  "parameters": [
460
460
  {
461
- "id": 20,
462
- "name": "absPath",
461
+ "id": 32,
462
+ "name": "_absPath",
463
463
  "variant": "param",
464
464
  "kind": 32768,
465
465
  "flags": {},
@@ -469,8 +469,8 @@
469
469
  }
470
470
  },
471
471
  {
472
- "id": 21,
473
- "name": "name",
472
+ "id": 33,
473
+ "name": "_name",
474
474
  "variant": "param",
475
475
  "kind": 32768,
476
476
  "flags": {},
@@ -492,7 +492,7 @@
492
492
  }
493
493
  },
494
494
  {
495
- "id": 22,
495
+ "id": 34,
496
496
  "name": "blocklist",
497
497
  "variant": "declaration",
498
498
  "kind": 1024,
@@ -504,7 +504,7 @@
504
504
  "fileName": "find.ts",
505
505
  "line": 12,
506
506
  "character": 4,
507
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L12"
507
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L12"
508
508
  }
509
509
  ],
510
510
  "type": {
@@ -520,7 +520,7 @@
520
520
  {
521
521
  "type": "reflection",
522
522
  "declaration": {
523
- "id": 23,
523
+ "id": 35,
524
524
  "name": "__type",
525
525
  "variant": "declaration",
526
526
  "kind": 65536,
@@ -530,12 +530,12 @@
530
530
  "fileName": "find.ts",
531
531
  "line": 12,
532
532
  "character": 28,
533
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L12"
533
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L12"
534
534
  }
535
535
  ],
536
536
  "signatures": [
537
537
  {
538
- "id": 24,
538
+ "id": 36,
539
539
  "name": "__type",
540
540
  "variant": "signature",
541
541
  "kind": 4096,
@@ -545,13 +545,13 @@
545
545
  "fileName": "find.ts",
546
546
  "line": 12,
547
547
  "character": 28,
548
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L12"
548
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L12"
549
549
  }
550
550
  ],
551
551
  "parameters": [
552
552
  {
553
- "id": 25,
554
- "name": "absPath",
553
+ "id": 37,
554
+ "name": "_absPath",
555
555
  "variant": "param",
556
556
  "kind": 32768,
557
557
  "flags": {},
@@ -561,8 +561,8 @@
561
561
  }
562
562
  },
563
563
  {
564
- "id": 26,
565
- "name": "name",
564
+ "id": 38,
565
+ "name": "_name",
566
566
  "variant": "param",
567
567
  "kind": 32768,
568
568
  "flags": {},
@@ -584,7 +584,7 @@
584
584
  }
585
585
  },
586
586
  {
587
- "id": 16,
587
+ "id": 28,
588
588
  "name": "followSymlinks",
589
589
  "variant": "declaration",
590
590
  "kind": 1024,
@@ -596,7 +596,7 @@
596
596
  "fileName": "find.ts",
597
597
  "line": 10,
598
598
  "character": 4,
599
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L10"
599
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L10"
600
600
  }
601
601
  ],
602
602
  "type": {
@@ -605,7 +605,7 @@
605
605
  }
606
606
  },
607
607
  {
608
- "id": 15,
608
+ "id": 27,
609
609
  "name": "maxDepth",
610
610
  "variant": "declaration",
611
611
  "kind": 1024,
@@ -617,7 +617,7 @@
617
617
  "fileName": "find.ts",
618
618
  "line": 9,
619
619
  "character": 4,
620
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L9"
620
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L9"
621
621
  }
622
622
  ],
623
623
  "type": {
@@ -630,10 +630,10 @@
630
630
  {
631
631
  "title": "Properties",
632
632
  "children": [
633
- 17,
634
- 22,
635
- 16,
636
- 15
633
+ 29,
634
+ 34,
635
+ 28,
636
+ 27
637
637
  ]
638
638
  }
639
639
  ],
@@ -642,10 +642,302 @@
642
642
  "fileName": "find.ts",
643
643
  "line": 8,
644
644
  "character": 10,
645
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L8"
645
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L8"
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "id": 58,
651
+ "name": "UserAgentInfo",
652
+ "variant": "declaration",
653
+ "kind": 256,
654
+ "flags": {},
655
+ "comment": {
656
+ "summary": [
657
+ {
658
+ "kind": "text",
659
+ "text": "Information extracted from a user-agent string."
660
+ }
661
+ ]
662
+ },
663
+ "children": [
664
+ {
665
+ "id": 59,
666
+ "name": "browser",
667
+ "variant": "declaration",
668
+ "kind": 1024,
669
+ "flags": {},
670
+ "comment": {
671
+ "summary": [
672
+ {
673
+ "kind": "text",
674
+ "text": "Browser name (e.g., Chrome, Firefox, Safari, Edge, Opera, Other)."
675
+ }
676
+ ]
677
+ },
678
+ "sources": [
679
+ {
680
+ "fileName": "user-agent.ts",
681
+ "line": 8,
682
+ "character": 4,
683
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L8"
684
+ }
685
+ ],
686
+ "type": {
687
+ "type": "intrinsic",
688
+ "name": "string"
689
+ }
690
+ },
691
+ {
692
+ "id": 62,
693
+ "name": "device",
694
+ "variant": "declaration",
695
+ "kind": 1024,
696
+ "flags": {},
697
+ "comment": {
698
+ "summary": [
699
+ {
700
+ "kind": "text",
701
+ "text": "Device type (e.g., Mobile, Tablet, Desktop, Other)."
702
+ }
703
+ ]
704
+ },
705
+ "sources": [
706
+ {
707
+ "fileName": "user-agent.ts",
708
+ "line": 20,
709
+ "character": 4,
710
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L20"
711
+ }
712
+ ],
713
+ "type": {
714
+ "type": "intrinsic",
715
+ "name": "string"
716
+ }
717
+ },
718
+ {
719
+ "id": 63,
720
+ "name": "engine",
721
+ "variant": "declaration",
722
+ "kind": 1024,
723
+ "flags": {},
724
+ "comment": {
725
+ "summary": [
726
+ {
727
+ "kind": "text",
728
+ "text": "Rendering engine (e.g., Blink, WebKit, Gecko, Presto, Other)."
729
+ }
730
+ ]
731
+ },
732
+ "sources": [
733
+ {
734
+ "fileName": "user-agent.ts",
735
+ "line": 24,
736
+ "character": 4,
737
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L24"
738
+ }
739
+ ],
740
+ "type": {
741
+ "type": "intrinsic",
742
+ "name": "string"
743
+ }
744
+ },
745
+ {
746
+ "id": 61,
747
+ "name": "os",
748
+ "variant": "declaration",
749
+ "kind": 1024,
750
+ "flags": {},
751
+ "comment": {
752
+ "summary": [
753
+ {
754
+ "kind": "text",
755
+ "text": "Operating system (e.g., Windows, macOS, Linux, iOS, Android, Other)."
756
+ }
757
+ ]
758
+ },
759
+ "sources": [
760
+ {
761
+ "fileName": "user-agent.ts",
762
+ "line": 16,
763
+ "character": 4,
764
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L16"
765
+ }
766
+ ],
767
+ "type": {
768
+ "type": "intrinsic",
769
+ "name": "string"
770
+ }
771
+ },
772
+ {
773
+ "id": 60,
774
+ "name": "version",
775
+ "variant": "declaration",
776
+ "kind": 1024,
777
+ "flags": {},
778
+ "comment": {
779
+ "summary": [
780
+ {
781
+ "kind": "text",
782
+ "text": "Browser version (e.g., 120.0.0.0)."
783
+ }
784
+ ]
785
+ },
786
+ "sources": [
787
+ {
788
+ "fileName": "user-agent.ts",
789
+ "line": 12,
790
+ "character": 4,
791
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L12"
792
+ }
793
+ ],
794
+ "type": {
795
+ "type": "intrinsic",
796
+ "name": "string"
797
+ }
798
+ }
799
+ ],
800
+ "groups": [
801
+ {
802
+ "title": "Properties",
803
+ "children": [
804
+ 59,
805
+ 62,
806
+ 63,
807
+ 61,
808
+ 60
809
+ ]
810
+ }
811
+ ],
812
+ "sources": [
813
+ {
814
+ "fileName": "user-agent.ts",
815
+ "line": 4,
816
+ "character": 17,
817
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L4"
646
818
  }
647
819
  ]
648
820
  },
821
+ {
822
+ "id": 64,
823
+ "name": "Base64CharsetType",
824
+ "variant": "declaration",
825
+ "kind": 2097152,
826
+ "flags": {},
827
+ "comment": {
828
+ "summary": [
829
+ {
830
+ "kind": "text",
831
+ "text": "Base64 charset type."
832
+ }
833
+ ]
834
+ },
835
+ "sources": [
836
+ {
837
+ "fileName": "base64.ts",
838
+ "line": 18,
839
+ "character": 5
840
+ }
841
+ ],
842
+ "type": {
843
+ "type": "indexedAccess",
844
+ "indexType": {
845
+ "type": "intrinsic",
846
+ "name": "number"
847
+ },
848
+ "objectType": {
849
+ "type": "query",
850
+ "queryType": {
851
+ "type": "reference",
852
+ "target": 25,
853
+ "name": "Base64Charset",
854
+ "package": "@wtasnorg/node-lib"
855
+ }
856
+ }
857
+ }
858
+ },
859
+ {
860
+ "id": 25,
861
+ "name": "Base64Charset",
862
+ "variant": "declaration",
863
+ "kind": 32,
864
+ "flags": {
865
+ "isConst": true
866
+ },
867
+ "comment": {
868
+ "summary": [
869
+ {
870
+ "kind": "text",
871
+ "text": "Available Base64 charset variants.\n- "
872
+ },
873
+ {
874
+ "kind": "code",
875
+ "text": "`standard`"
876
+ },
877
+ {
878
+ "kind": "text",
879
+ "text": ": RFC 4648 standard alphabet (A-Z, a-z, 0-9, +, /)\n- "
880
+ },
881
+ {
882
+ "kind": "code",
883
+ "text": "`urlsafe`"
884
+ },
885
+ {
886
+ "kind": "text",
887
+ "text": ": URL and filename safe (A-Z, a-z, 0-9, -, _)\n- "
888
+ },
889
+ {
890
+ "kind": "code",
891
+ "text": "`imap`"
892
+ },
893
+ {
894
+ "kind": "text",
895
+ "text": ": Modified Base64 for IMAP mailbox names (A-Z, a-z, 0-9, +, ,)\n- "
896
+ },
897
+ {
898
+ "kind": "code",
899
+ "text": "`radix64`"
900
+ },
901
+ {
902
+ "kind": "text",
903
+ "text": ": Base64 variant used in OpenPGP (A-Z, a-z, 0-9, +, /)"
904
+ }
905
+ ]
906
+ },
907
+ "sources": [
908
+ {
909
+ "fileName": "base64.ts",
910
+ "line": 13,
911
+ "character": 6
912
+ }
913
+ ],
914
+ "type": {
915
+ "type": "typeOperator",
916
+ "operator": "readonly",
917
+ "target": {
918
+ "type": "tuple",
919
+ "elements": [
920
+ {
921
+ "type": "literal",
922
+ "value": "standard"
923
+ },
924
+ {
925
+ "type": "literal",
926
+ "value": "urlsafe"
927
+ },
928
+ {
929
+ "type": "literal",
930
+ "value": "imap"
931
+ },
932
+ {
933
+ "type": "literal",
934
+ "value": "radix64"
935
+ }
936
+ ]
937
+ }
938
+ },
939
+ "defaultValue": "..."
940
+ },
649
941
  {
650
942
  "id": 7,
651
943
  "name": "createFindDirectories",
@@ -657,7 +949,7 @@
657
949
  "fileName": "find.ts",
658
950
  "line": 19,
659
951
  "character": 9,
660
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L19"
952
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L19"
661
953
  }
662
954
  ],
663
955
  "signatures": [
@@ -680,7 +972,7 @@
680
972
  "fileName": "find.ts",
681
973
  "line": 19,
682
974
  "character": 9,
683
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L19"
975
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L19"
684
976
  }
685
977
  ],
686
978
  "parameters": [
@@ -692,7 +984,7 @@
692
984
  "flags": {},
693
985
  "type": {
694
986
  "type": "reference",
695
- "target": 27,
987
+ "target": 39,
696
988
  "name": "FileSystemDependencies",
697
989
  "package": "@wtasnorg/node-lib"
698
990
  }
@@ -711,7 +1003,7 @@
711
1003
  "fileName": "find.ts",
712
1004
  "line": 23,
713
1005
  "character": 26,
714
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L23"
1006
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L23"
715
1007
  }
716
1008
  ],
717
1009
  "signatures": [
@@ -726,7 +1018,7 @@
726
1018
  "fileName": "find.ts",
727
1019
  "line": 23,
728
1020
  "character": 26,
729
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/find.ts#L23"
1021
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/find.ts#L23"
730
1022
  }
731
1023
  ],
732
1024
  "parameters": [
@@ -749,7 +1041,7 @@
749
1041
  "flags": {},
750
1042
  "type": {
751
1043
  "type": "reference",
752
- "target": 14,
1044
+ "target": 26,
753
1045
  "name": "FindDirectoriesOptions",
754
1046
  "package": "@wtasnorg/node-lib"
755
1047
  },
@@ -783,23 +1075,22 @@
783
1075
  ]
784
1076
  },
785
1077
  {
786
- "id": 1,
787
- "name": "hello",
1078
+ "id": 21,
1079
+ "name": "decode",
788
1080
  "variant": "declaration",
789
1081
  "kind": 64,
790
1082
  "flags": {},
791
1083
  "sources": [
792
1084
  {
793
- "fileName": "hello.ts",
794
- "line": 6,
795
- "character": 15,
796
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/hello.ts#L6"
1085
+ "fileName": "base64.ts",
1086
+ "line": 119,
1087
+ "character": 9
797
1088
  }
798
1089
  ],
799
1090
  "signatures": [
800
1091
  {
801
- "id": 2,
802
- "name": "hello",
1092
+ "id": 22,
1093
+ "name": "decode",
803
1094
  "variant": "signature",
804
1095
  "kind": 4096,
805
1096
  "flags": {},
@@ -807,16 +1098,34 @@
807
1098
  "summary": [
808
1099
  {
809
1100
  "kind": "text",
810
- "text": "A sample function that should work to test if lib is installed correctly."
1101
+ "text": "Decode a Base64 string."
811
1102
  }
812
1103
  ],
813
1104
  "blockTags": [
1105
+ {
1106
+ "tag": "@example",
1107
+ "content": [
1108
+ {
1109
+ "kind": "code",
1110
+ "text": "```typescript\nimport { decode } from \"./base64.js\";\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\");\n// => \"Hello, World!\"\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\", \"standard\");\n// => \"Hello, World!\"\n```"
1111
+ }
1112
+ ]
1113
+ },
814
1114
  {
815
1115
  "tag": "@returns",
816
1116
  "content": [
817
1117
  {
818
1118
  "kind": "text",
819
- "text": "hello message"
1119
+ "text": "The decoded string."
1120
+ }
1121
+ ]
1122
+ },
1123
+ {
1124
+ "tag": "@throws",
1125
+ "content": [
1126
+ {
1127
+ "kind": "text",
1128
+ "text": "Error if the input contains invalid characters."
820
1129
  }
821
1130
  ]
822
1131
  }
@@ -824,43 +1133,375 @@
824
1133
  },
825
1134
  "sources": [
826
1135
  {
827
- "fileName": "hello.ts",
828
- "line": 6,
829
- "character": 15,
830
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/hello.ts#L6"
1136
+ "fileName": "base64.ts",
1137
+ "line": 119,
1138
+ "character": 9
831
1139
  }
832
1140
  ],
833
- "type": {
834
- "type": "reference",
835
- "target": {
836
- "packageName": "typescript",
837
- "packagePath": "lib/lib.es5.d.ts",
838
- "qualifiedName": "Promise"
839
- },
840
- "typeArguments": [
841
- {
1141
+ "parameters": [
1142
+ {
1143
+ "id": 23,
1144
+ "name": "input",
1145
+ "variant": "param",
1146
+ "kind": 32768,
1147
+ "flags": {},
1148
+ "comment": {
1149
+ "summary": [
1150
+ {
1151
+ "kind": "text",
1152
+ "text": "The Base64 encoded string."
1153
+ }
1154
+ ]
1155
+ },
1156
+ "type": {
842
1157
  "type": "intrinsic",
843
1158
  "name": "string"
844
1159
  }
845
- ],
846
- "name": "Promise",
847
- "package": "typescript"
1160
+ },
1161
+ {
1162
+ "id": 24,
1163
+ "name": "charset",
1164
+ "variant": "param",
1165
+ "kind": 32768,
1166
+ "flags": {},
1167
+ "comment": {
1168
+ "summary": [
1169
+ {
1170
+ "kind": "text",
1171
+ "text": "The charset variant to use (default: \"standard\")."
1172
+ }
1173
+ ]
1174
+ },
1175
+ "type": {
1176
+ "type": "union",
1177
+ "types": [
1178
+ {
1179
+ "type": "literal",
1180
+ "value": "standard"
1181
+ },
1182
+ {
1183
+ "type": "literal",
1184
+ "value": "urlsafe"
1185
+ },
1186
+ {
1187
+ "type": "literal",
1188
+ "value": "imap"
1189
+ },
1190
+ {
1191
+ "type": "literal",
1192
+ "value": "radix64"
1193
+ }
1194
+ ]
1195
+ },
1196
+ "defaultValue": "\"standard\""
1197
+ }
1198
+ ],
1199
+ "type": {
1200
+ "type": "intrinsic",
1201
+ "name": "string"
848
1202
  }
849
1203
  }
850
1204
  ]
851
1205
  },
852
1206
  {
853
- "id": 3,
854
- "name": "pojo",
1207
+ "id": 17,
1208
+ "name": "encode",
855
1209
  "variant": "declaration",
856
1210
  "kind": 64,
857
1211
  "flags": {},
858
1212
  "sources": [
859
1213
  {
860
- "fileName": "pojo.ts",
861
- "line": 10,
862
- "character": 9,
863
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/pojo.ts#L10"
1214
+ "fileName": "base64.ts",
1215
+ "line": 79,
1216
+ "character": 9
1217
+ }
1218
+ ],
1219
+ "signatures": [
1220
+ {
1221
+ "id": 18,
1222
+ "name": "encode",
1223
+ "variant": "signature",
1224
+ "kind": 4096,
1225
+ "flags": {},
1226
+ "comment": {
1227
+ "summary": [
1228
+ {
1229
+ "kind": "text",
1230
+ "text": "Encode a string to Base64."
1231
+ }
1232
+ ],
1233
+ "blockTags": [
1234
+ {
1235
+ "tag": "@example",
1236
+ "content": [
1237
+ {
1238
+ "kind": "code",
1239
+ "text": "```typescript\nimport { encode } from \"./base64.js\";\n\nencode(\"Hello, World!\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n\nencode(\"Hello, World!\", \"urlsafe\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n```"
1240
+ }
1241
+ ]
1242
+ },
1243
+ {
1244
+ "tag": "@returns",
1245
+ "content": [
1246
+ {
1247
+ "kind": "text",
1248
+ "text": "The Base64 encoded string."
1249
+ }
1250
+ ]
1251
+ }
1252
+ ]
1253
+ },
1254
+ "sources": [
1255
+ {
1256
+ "fileName": "base64.ts",
1257
+ "line": 79,
1258
+ "character": 9
1259
+ }
1260
+ ],
1261
+ "parameters": [
1262
+ {
1263
+ "id": 19,
1264
+ "name": "input",
1265
+ "variant": "param",
1266
+ "kind": 32768,
1267
+ "flags": {},
1268
+ "comment": {
1269
+ "summary": [
1270
+ {
1271
+ "kind": "text",
1272
+ "text": "The string to encode."
1273
+ }
1274
+ ]
1275
+ },
1276
+ "type": {
1277
+ "type": "intrinsic",
1278
+ "name": "string"
1279
+ }
1280
+ },
1281
+ {
1282
+ "id": 20,
1283
+ "name": "charset",
1284
+ "variant": "param",
1285
+ "kind": 32768,
1286
+ "flags": {},
1287
+ "comment": {
1288
+ "summary": [
1289
+ {
1290
+ "kind": "text",
1291
+ "text": "The charset variant to use (default: \"standard\")."
1292
+ }
1293
+ ]
1294
+ },
1295
+ "type": {
1296
+ "type": "union",
1297
+ "types": [
1298
+ {
1299
+ "type": "literal",
1300
+ "value": "standard"
1301
+ },
1302
+ {
1303
+ "type": "literal",
1304
+ "value": "urlsafe"
1305
+ },
1306
+ {
1307
+ "type": "literal",
1308
+ "value": "imap"
1309
+ },
1310
+ {
1311
+ "type": "literal",
1312
+ "value": "radix64"
1313
+ }
1314
+ ]
1315
+ },
1316
+ "defaultValue": "\"standard\""
1317
+ }
1318
+ ],
1319
+ "type": {
1320
+ "type": "intrinsic",
1321
+ "name": "string"
1322
+ }
1323
+ }
1324
+ ]
1325
+ },
1326
+ {
1327
+ "id": 1,
1328
+ "name": "hello",
1329
+ "variant": "declaration",
1330
+ "kind": 64,
1331
+ "flags": {},
1332
+ "sources": [
1333
+ {
1334
+ "fileName": "hello.ts",
1335
+ "line": 6,
1336
+ "character": 15,
1337
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/hello.ts#L6"
1338
+ }
1339
+ ],
1340
+ "signatures": [
1341
+ {
1342
+ "id": 2,
1343
+ "name": "hello",
1344
+ "variant": "signature",
1345
+ "kind": 4096,
1346
+ "flags": {},
1347
+ "comment": {
1348
+ "summary": [
1349
+ {
1350
+ "kind": "text",
1351
+ "text": "A sample function that should work to test if lib is installed correctly."
1352
+ }
1353
+ ],
1354
+ "blockTags": [
1355
+ {
1356
+ "tag": "@returns",
1357
+ "content": [
1358
+ {
1359
+ "kind": "text",
1360
+ "text": "hello message"
1361
+ }
1362
+ ]
1363
+ }
1364
+ ]
1365
+ },
1366
+ "sources": [
1367
+ {
1368
+ "fileName": "hello.ts",
1369
+ "line": 6,
1370
+ "character": 15,
1371
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/hello.ts#L6"
1372
+ }
1373
+ ],
1374
+ "type": {
1375
+ "type": "reference",
1376
+ "target": {
1377
+ "packageName": "typescript",
1378
+ "packagePath": "lib/lib.es5.d.ts",
1379
+ "qualifiedName": "Promise"
1380
+ },
1381
+ "typeArguments": [
1382
+ {
1383
+ "type": "intrinsic",
1384
+ "name": "string"
1385
+ }
1386
+ ],
1387
+ "name": "Promise",
1388
+ "package": "typescript"
1389
+ }
1390
+ }
1391
+ ]
1392
+ },
1393
+ {
1394
+ "id": 14,
1395
+ "name": "parseUserAgent",
1396
+ "variant": "declaration",
1397
+ "kind": 64,
1398
+ "flags": {},
1399
+ "sources": [
1400
+ {
1401
+ "fileName": "user-agent.ts",
1402
+ "line": 48,
1403
+ "character": 16,
1404
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L48"
1405
+ }
1406
+ ],
1407
+ "signatures": [
1408
+ {
1409
+ "id": 15,
1410
+ "name": "parseUserAgent",
1411
+ "variant": "signature",
1412
+ "kind": 4096,
1413
+ "flags": {},
1414
+ "comment": {
1415
+ "summary": [
1416
+ {
1417
+ "kind": "text",
1418
+ "text": "Parses a user-agent string into a UserAgentInfo object."
1419
+ }
1420
+ ],
1421
+ "blockTags": [
1422
+ {
1423
+ "tag": "@returns",
1424
+ "content": [
1425
+ {
1426
+ "kind": "text",
1427
+ "text": "An object containing the extracted information."
1428
+ }
1429
+ ]
1430
+ },
1431
+ {
1432
+ "tag": "@example",
1433
+ "content": [
1434
+ {
1435
+ "kind": "code",
1436
+ "text": "```typescript\n// Success Example (Chrome on Windows)\nconst ua = \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\";\nconst info = parseUserAgent(ua);\n// { browser: \"Chrome\", version: \"120.0.0.0\", os: \"Windows\", device: \"Desktop\", engine: \"Blink\" }\n```"
1437
+ }
1438
+ ]
1439
+ },
1440
+ {
1441
+ "tag": "@example",
1442
+ "content": [
1443
+ {
1444
+ "kind": "text",
1445
+ "text": "\n\n"
1446
+ },
1447
+ {
1448
+ "kind": "code",
1449
+ "text": "```typescript\n// Error/Fallback Example (Empty string)\nconst info = parseUserAgent(\"\");\n// { browser: \"Other\", version: \"0\", os: \"Other\", device: \"Desktop\", engine: \"Other\" }\n```"
1450
+ }
1451
+ ]
1452
+ }
1453
+ ]
1454
+ },
1455
+ "sources": [
1456
+ {
1457
+ "fileName": "user-agent.ts",
1458
+ "line": 48,
1459
+ "character": 16,
1460
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/user-agent.ts#L48"
1461
+ }
1462
+ ],
1463
+ "parameters": [
1464
+ {
1465
+ "id": 16,
1466
+ "name": "ua",
1467
+ "variant": "param",
1468
+ "kind": 32768,
1469
+ "flags": {},
1470
+ "comment": {
1471
+ "summary": [
1472
+ {
1473
+ "kind": "text",
1474
+ "text": "The user-agent string to parse."
1475
+ }
1476
+ ]
1477
+ },
1478
+ "type": {
1479
+ "type": "intrinsic",
1480
+ "name": "string"
1481
+ }
1482
+ }
1483
+ ],
1484
+ "type": {
1485
+ "type": "reference",
1486
+ "target": 58,
1487
+ "name": "UserAgentInfo",
1488
+ "package": "@wtasnorg/node-lib"
1489
+ }
1490
+ }
1491
+ ]
1492
+ },
1493
+ {
1494
+ "id": 3,
1495
+ "name": "pojo",
1496
+ "variant": "declaration",
1497
+ "kind": 64,
1498
+ "flags": {},
1499
+ "sources": [
1500
+ {
1501
+ "fileName": "pojo.ts",
1502
+ "line": 10,
1503
+ "character": 9,
1504
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/pojo.ts#L10"
864
1505
  }
865
1506
  ],
866
1507
  "signatures": [
@@ -894,7 +1535,7 @@
894
1535
  "fileName": "pojo.ts",
895
1536
  "line": 10,
896
1537
  "character": 9,
897
- "url": "https://github.com/wtasg/node-lib/blob/5ccb6028429af225c9ab29e1b6007075025c601f/src/pojo.ts#L10"
1538
+ "url": "https://github.com/wtasg/node-lib/blob/b5efd5c345e8fa1bdc2a6d3ea4dd4b2eb5b9cc62/src/pojo.ts#L10"
898
1539
  }
899
1540
  ],
900
1541
  "typeParameters": [
@@ -962,91 +1603,36 @@
962
1603
  {
963
1604
  "title": "Interfaces",
964
1605
  "children": [
965
- 27,
966
- 14
1606
+ 39,
1607
+ 26,
1608
+ 58
1609
+ ]
1610
+ },
1611
+ {
1612
+ "title": "Type Aliases",
1613
+ "children": [
1614
+ 64
1615
+ ]
1616
+ },
1617
+ {
1618
+ "title": "Variables",
1619
+ "children": [
1620
+ 25
967
1621
  ]
968
1622
  },
969
1623
  {
970
1624
  "title": "Functions",
971
1625
  "children": [
972
1626
  7,
1627
+ 21,
1628
+ 17,
973
1629
  1,
1630
+ 14,
974
1631
  3
975
1632
  ]
976
1633
  }
977
1634
  ],
978
1635
  "packageName": "@wtasnorg/node-lib",
979
- "readme": [
980
- {
981
- "kind": "text",
982
- "text": "# @wtasnorg/node-lib\n\nA library project for nodejs. #nodejs #typescript #library\n\n- [npm org](https://www.npmjs.com/org/wtasnorg)\n- [github repo](https://github.com/wtasg/node-lib)\n\n## Functions\n\n1. hello (for debugging)\n2. "
983
- },
984
- {
985
- "kind": "code",
986
- "text": "`pojo`"
987
- },
988
- {
989
- "kind": "text",
990
- "text": " for converting class objects to Plain Old Javascript Objects.\n3. "
991
- },
992
- {
993
- "kind": "code",
994
- "text": "`createFindDirectories`"
995
- },
996
- {
997
- "kind": "text",
998
- "text": " as a factory for finding directories; think "
999
- },
1000
- {
1001
- "kind": "code",
1002
- "text": "`find path -type d`"
1003
- },
1004
- {
1005
- "kind": "text",
1006
- "text": ".\n\n## Develop\n\n"
1007
- },
1008
- {
1009
- "kind": "code",
1010
- "text": "```bash\ngit clone git@github.com:wtasg/node-lib.git\nnpm run build\nnpm run test\n# make changes...\n```"
1011
- },
1012
- {
1013
- "kind": "text",
1014
- "text": "\n\nWe are using "
1015
- },
1016
- {
1017
- "kind": "code",
1018
- "text": "`node --test`"
1019
- },
1020
- {
1021
- "kind": "text",
1022
- "text": " for testing.\n\n## Install and Usage\n\n"
1023
- },
1024
- {
1025
- "kind": "code",
1026
- "text": "```bash\nnpm install @wtasnorg/node-lib\n```"
1027
- },
1028
- {
1029
- "kind": "text",
1030
- "text": "\n\n"
1031
- },
1032
- {
1033
- "kind": "code",
1034
- "text": "```typescript\n# check if you can run code\nimport {hello} from \"@wtasnorg/node-lib\";\n\nawait hello(); \n// \"hello from @wtasnorg/node-lib\"\n```"
1035
- },
1036
- {
1037
- "kind": "text",
1038
- "text": "\n\n## License: MIT\n\n[MIT License file]("
1039
- },
1040
- {
1041
- "kind": "relative-link",
1042
- "text": "LICENSE",
1043
- "target": 2
1044
- },
1045
- {
1046
- "kind": "text",
1047
- "text": ")"
1048
- }
1049
- ],
1050
1636
  "symbolIdMap": {
1051
1637
  "0": {
1052
1638
  "packageName": "@wtasnorg/node-lib",
@@ -1119,177 +1705,267 @@
1119
1705
  "qualifiedName": "options"
1120
1706
  },
1121
1707
  "14": {
1708
+ "packageName": "@wtasnorg/node-lib",
1709
+ "packagePath": "src/user-agent.ts",
1710
+ "qualifiedName": "parseUserAgent"
1711
+ },
1712
+ "15": {
1713
+ "packageName": "@wtasnorg/node-lib",
1714
+ "packagePath": "src/user-agent.ts",
1715
+ "qualifiedName": "parseUserAgent"
1716
+ },
1717
+ "16": {
1718
+ "packageName": "@wtasnorg/node-lib",
1719
+ "packagePath": "src/user-agent.ts",
1720
+ "qualifiedName": "ua"
1721
+ },
1722
+ "17": {
1723
+ "packageName": "@wtasnorg/node-lib",
1724
+ "packagePath": "src/base64.ts",
1725
+ "qualifiedName": "encode"
1726
+ },
1727
+ "18": {
1728
+ "packageName": "@wtasnorg/node-lib",
1729
+ "packagePath": "src/base64.ts",
1730
+ "qualifiedName": "encode"
1731
+ },
1732
+ "19": {
1733
+ "packageName": "@wtasnorg/node-lib",
1734
+ "packagePath": "src/base64.ts",
1735
+ "qualifiedName": "input"
1736
+ },
1737
+ "20": {
1738
+ "packageName": "@wtasnorg/node-lib",
1739
+ "packagePath": "src/base64.ts",
1740
+ "qualifiedName": "charset"
1741
+ },
1742
+ "21": {
1743
+ "packageName": "@wtasnorg/node-lib",
1744
+ "packagePath": "src/base64.ts",
1745
+ "qualifiedName": "decode"
1746
+ },
1747
+ "22": {
1748
+ "packageName": "@wtasnorg/node-lib",
1749
+ "packagePath": "src/base64.ts",
1750
+ "qualifiedName": "decode"
1751
+ },
1752
+ "23": {
1753
+ "packageName": "@wtasnorg/node-lib",
1754
+ "packagePath": "src/base64.ts",
1755
+ "qualifiedName": "input"
1756
+ },
1757
+ "24": {
1758
+ "packageName": "@wtasnorg/node-lib",
1759
+ "packagePath": "src/base64.ts",
1760
+ "qualifiedName": "charset"
1761
+ },
1762
+ "25": {
1763
+ "packageName": "@wtasnorg/node-lib",
1764
+ "packagePath": "src/base64.ts",
1765
+ "qualifiedName": "Base64Charset"
1766
+ },
1767
+ "26": {
1122
1768
  "packageName": "@wtasnorg/node-lib",
1123
1769
  "packagePath": "src/find.ts",
1124
1770
  "qualifiedName": "FindDirectoriesOptions"
1125
1771
  },
1126
- "15": {
1772
+ "27": {
1127
1773
  "packageName": "@wtasnorg/node-lib",
1128
1774
  "packagePath": "src/find.ts",
1129
1775
  "qualifiedName": "FindDirectoriesOptions.maxDepth"
1130
1776
  },
1131
- "16": {
1777
+ "28": {
1132
1778
  "packageName": "@wtasnorg/node-lib",
1133
1779
  "packagePath": "src/find.ts",
1134
1780
  "qualifiedName": "FindDirectoriesOptions.followSymlinks"
1135
1781
  },
1136
- "17": {
1782
+ "29": {
1137
1783
  "packageName": "@wtasnorg/node-lib",
1138
1784
  "packagePath": "src/find.ts",
1139
1785
  "qualifiedName": "FindDirectoriesOptions.allowlist"
1140
1786
  },
1141
- "18": {
1787
+ "30": {
1142
1788
  "packageName": "@wtasnorg/node-lib",
1143
1789
  "packagePath": "src/find.ts",
1144
1790
  "qualifiedName": "__type"
1145
1791
  },
1146
- "19": {
1792
+ "31": {
1147
1793
  "packageName": "@wtasnorg/node-lib",
1148
1794
  "packagePath": "src/find.ts",
1149
1795
  "qualifiedName": "__type"
1150
1796
  },
1151
- "20": {
1797
+ "32": {
1152
1798
  "packageName": "@wtasnorg/node-lib",
1153
1799
  "packagePath": "src/find.ts",
1154
- "qualifiedName": "absPath"
1800
+ "qualifiedName": "_absPath"
1155
1801
  },
1156
- "21": {
1802
+ "33": {
1157
1803
  "packageName": "@wtasnorg/node-lib",
1158
1804
  "packagePath": "src/find.ts",
1159
- "qualifiedName": "name"
1805
+ "qualifiedName": "_name"
1160
1806
  },
1161
- "22": {
1807
+ "34": {
1162
1808
  "packageName": "@wtasnorg/node-lib",
1163
1809
  "packagePath": "src/find.ts",
1164
1810
  "qualifiedName": "FindDirectoriesOptions.blocklist"
1165
1811
  },
1166
- "23": {
1812
+ "35": {
1167
1813
  "packageName": "@wtasnorg/node-lib",
1168
1814
  "packagePath": "src/find.ts",
1169
1815
  "qualifiedName": "__type"
1170
1816
  },
1171
- "24": {
1817
+ "36": {
1172
1818
  "packageName": "@wtasnorg/node-lib",
1173
1819
  "packagePath": "src/find.ts",
1174
1820
  "qualifiedName": "__type"
1175
1821
  },
1176
- "25": {
1822
+ "37": {
1177
1823
  "packageName": "@wtasnorg/node-lib",
1178
1824
  "packagePath": "src/find.ts",
1179
- "qualifiedName": "absPath"
1825
+ "qualifiedName": "_absPath"
1180
1826
  },
1181
- "26": {
1827
+ "38": {
1182
1828
  "packageName": "@wtasnorg/node-lib",
1183
1829
  "packagePath": "src/find.ts",
1184
- "qualifiedName": "name"
1830
+ "qualifiedName": "_name"
1185
1831
  },
1186
- "27": {
1832
+ "39": {
1187
1833
  "packageName": "@wtasnorg/node-lib",
1188
1834
  "packagePath": "src/find.ts",
1189
1835
  "qualifiedName": "FileSystemDependencies"
1190
1836
  },
1191
- "28": {
1837
+ "40": {
1192
1838
  "packageName": "@wtasnorg/node-lib",
1193
1839
  "packagePath": "src/find.ts",
1194
1840
  "qualifiedName": "FileSystemDependencies.readdir"
1195
1841
  },
1196
- "29": {
1842
+ "41": {
1197
1843
  "packageName": "@wtasnorg/node-lib",
1198
1844
  "packagePath": "src/find.ts",
1199
1845
  "qualifiedName": "__type"
1200
1846
  },
1201
- "30": {
1847
+ "42": {
1202
1848
  "packageName": "@wtasnorg/node-lib",
1203
1849
  "packagePath": "src/find.ts",
1204
1850
  "qualifiedName": "__type"
1205
1851
  },
1206
- "31": {
1852
+ "43": {
1207
1853
  "packageName": "@wtasnorg/node-lib",
1208
1854
  "packagePath": "src/find.ts",
1209
- "qualifiedName": "path"
1855
+ "qualifiedName": "_path"
1210
1856
  },
1211
- "32": {
1857
+ "44": {
1212
1858
  "packageName": "@wtasnorg/node-lib",
1213
1859
  "packagePath": "src/find.ts",
1214
- "qualifiedName": "opts"
1860
+ "qualifiedName": "_opts"
1215
1861
  },
1216
- "33": {
1862
+ "45": {
1217
1863
  "packageName": "@wtasnorg/node-lib",
1218
1864
  "packagePath": "src/find.ts",
1219
1865
  "qualifiedName": "__type"
1220
1866
  },
1221
- "34": {
1867
+ "46": {
1222
1868
  "packageName": "@wtasnorg/node-lib",
1223
1869
  "packagePath": "src/find.ts",
1224
1870
  "qualifiedName": "__type.withFileTypes"
1225
1871
  },
1226
- "35": {
1872
+ "47": {
1227
1873
  "packageName": "@wtasnorg/node-lib",
1228
1874
  "packagePath": "src/find.ts",
1229
1875
  "qualifiedName": "__type"
1230
1876
  },
1231
- "36": {
1877
+ "48": {
1232
1878
  "packageName": "@wtasnorg/node-lib",
1233
1879
  "packagePath": "src/find.ts",
1234
1880
  "qualifiedName": "__type.name"
1235
1881
  },
1236
- "37": {
1882
+ "49": {
1237
1883
  "packageName": "@wtasnorg/node-lib",
1238
1884
  "packagePath": "src/find.ts",
1239
1885
  "qualifiedName": "__type.isDirectory"
1240
1886
  },
1241
- "38": {
1887
+ "50": {
1242
1888
  "packageName": "@wtasnorg/node-lib",
1243
1889
  "packagePath": "src/find.ts",
1244
1890
  "qualifiedName": "__type.isDirectory"
1245
1891
  },
1246
- "39": {
1892
+ "51": {
1247
1893
  "packageName": "@wtasnorg/node-lib",
1248
1894
  "packagePath": "src/find.ts",
1249
1895
  "qualifiedName": "FileSystemDependencies.stat"
1250
1896
  },
1251
- "40": {
1897
+ "52": {
1252
1898
  "packageName": "@wtasnorg/node-lib",
1253
1899
  "packagePath": "src/find.ts",
1254
1900
  "qualifiedName": "__type"
1255
1901
  },
1256
- "41": {
1902
+ "53": {
1257
1903
  "packageName": "@wtasnorg/node-lib",
1258
1904
  "packagePath": "src/find.ts",
1259
1905
  "qualifiedName": "__type"
1260
1906
  },
1261
- "42": {
1907
+ "54": {
1262
1908
  "packageName": "@wtasnorg/node-lib",
1263
1909
  "packagePath": "src/find.ts",
1264
- "qualifiedName": "path"
1910
+ "qualifiedName": "_path"
1265
1911
  },
1266
- "43": {
1912
+ "55": {
1267
1913
  "packageName": "@wtasnorg/node-lib",
1268
1914
  "packagePath": "src/find.ts",
1269
1915
  "qualifiedName": "__type"
1270
1916
  },
1271
- "44": {
1917
+ "56": {
1272
1918
  "packageName": "@wtasnorg/node-lib",
1273
1919
  "packagePath": "src/find.ts",
1274
1920
  "qualifiedName": "__type.isDirectory"
1275
1921
  },
1276
- "45": {
1922
+ "57": {
1277
1923
  "packageName": "@wtasnorg/node-lib",
1278
1924
  "packagePath": "src/find.ts",
1279
1925
  "qualifiedName": "__type.isDirectory"
1926
+ },
1927
+ "58": {
1928
+ "packageName": "@wtasnorg/node-lib",
1929
+ "packagePath": "src/user-agent.ts",
1930
+ "qualifiedName": "UserAgentInfo"
1931
+ },
1932
+ "59": {
1933
+ "packageName": "@wtasnorg/node-lib",
1934
+ "packagePath": "src/user-agent.ts",
1935
+ "qualifiedName": "UserAgentInfo.browser"
1936
+ },
1937
+ "60": {
1938
+ "packageName": "@wtasnorg/node-lib",
1939
+ "packagePath": "src/user-agent.ts",
1940
+ "qualifiedName": "UserAgentInfo.version"
1941
+ },
1942
+ "61": {
1943
+ "packageName": "@wtasnorg/node-lib",
1944
+ "packagePath": "src/user-agent.ts",
1945
+ "qualifiedName": "UserAgentInfo.os"
1946
+ },
1947
+ "62": {
1948
+ "packageName": "@wtasnorg/node-lib",
1949
+ "packagePath": "src/user-agent.ts",
1950
+ "qualifiedName": "UserAgentInfo.device"
1951
+ },
1952
+ "63": {
1953
+ "packageName": "@wtasnorg/node-lib",
1954
+ "packagePath": "src/user-agent.ts",
1955
+ "qualifiedName": "UserAgentInfo.engine"
1956
+ },
1957
+ "64": {
1958
+ "packageName": "@wtasnorg/node-lib",
1959
+ "packagePath": "src/base64.ts",
1960
+ "qualifiedName": "Base64CharsetType"
1280
1961
  }
1281
1962
  },
1282
1963
  "files": {
1283
1964
  "entries": {
1284
- "1": "src/index.ts",
1285
- "2": "LICENSE",
1286
- "3": "README.md",
1287
- "4": ""
1965
+ "1": "src/index.ts"
1288
1966
  },
1289
1967
  "reflections": {
1290
- "1": 0,
1291
- "3": 0,
1292
- "4": 0
1968
+ "1": 0
1293
1969
  }
1294
1970
  }
1295
1971
  }