@wtasnorg/node-lib 0.0.10 → 0.0.12

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 (62) hide show
  1. package/changelog.txt +14 -0
  2. package/docs/README.md +17 -0
  3. package/docs/docs.json +2148 -413
  4. package/docs/functions/countOnes.md +31 -0
  5. package/docs/functions/countZeroes.md +32 -0
  6. package/docs/functions/countZeroesWithWidth.md +37 -0
  7. package/docs/functions/createFindDirectories.md +3 -3
  8. package/docs/functions/decode.md +3 -3
  9. package/docs/functions/decode32.md +49 -0
  10. package/docs/functions/decode58.md +49 -0
  11. package/docs/functions/decode85.md +49 -0
  12. package/docs/functions/encode.md +3 -3
  13. package/docs/functions/encode32.md +45 -0
  14. package/docs/functions/encode58.md +45 -0
  15. package/docs/functions/encode85.md +45 -0
  16. package/docs/functions/hello.md +1 -1
  17. package/docs/functions/parseUserAgent.md +1 -1
  18. package/docs/functions/pojo.md +1 -1
  19. package/docs/functions/popcount32.md +27 -0
  20. package/docs/functions/popcount64.md +31 -0
  21. package/docs/interfaces/FileSystemDependencies.md +3 -3
  22. package/docs/interfaces/FindDirectoriesOptions.md +5 -5
  23. package/docs/interfaces/UserAgentInfo.md +6 -6
  24. package/docs/type-aliases/Base32CharsetType.md +13 -0
  25. package/docs/type-aliases/Base58CharsetType.md +13 -0
  26. package/docs/type-aliases/Base64CharsetType.md +1 -1
  27. package/docs/type-aliases/Base85CharsetType.md +13 -0
  28. package/docs/variables/Base32Charset.md +16 -0
  29. package/docs/variables/Base58Charset.md +16 -0
  30. package/docs/variables/Base64Charset.md +1 -1
  31. package/docs/variables/Base85Charset.md +16 -0
  32. package/package.json +52 -8
  33. package/readme.txt +30 -4
  34. package/src/base32.d.ts +58 -0
  35. package/src/base32.js +143 -0
  36. package/src/base32.test.d.ts +2 -0
  37. package/src/base32.test.js +121 -0
  38. package/src/base32.test.ts +144 -0
  39. package/src/base32.ts +169 -0
  40. package/src/base58.d.ts +58 -0
  41. package/src/base58.js +155 -0
  42. package/src/base58.test.d.ts +2 -0
  43. package/src/base58.test.js +108 -0
  44. package/src/base58.test.ts +128 -0
  45. package/src/base58.ts +177 -0
  46. package/src/base85.d.ts +58 -0
  47. package/src/base85.js +173 -0
  48. package/src/base85.test.d.ts +2 -0
  49. package/src/base85.test.js +107 -0
  50. package/src/base85.test.ts +125 -0
  51. package/src/base85.ts +199 -0
  52. package/src/bits.d.ts +43 -0
  53. package/src/bits.js +117 -0
  54. package/src/bits.test.d.ts +2 -0
  55. package/src/bits.test.js +62 -0
  56. package/src/bits.test.ts +77 -0
  57. package/src/bits.ts +135 -0
  58. package/src/index.d.ts +9 -2
  59. package/src/index.js +5 -1
  60. package/src/index.ts +26 -2
  61. package/.github/workflows/npm-publish.yml +0 -36
  62. package/.github/workflows/npm-test-on-pr.yml +0 -30
package/docs/docs.json CHANGED
@@ -7,14 +7,14 @@
7
7
  "flags": {},
8
8
  "children": [
9
9
  {
10
- "id": 40,
10
+ "id": 83,
11
11
  "name": "FileSystemDependencies",
12
12
  "variant": "declaration",
13
13
  "kind": 256,
14
14
  "flags": {},
15
15
  "children": [
16
16
  {
17
- "id": 41,
17
+ "id": 84,
18
18
  "name": "readdir",
19
19
  "variant": "declaration",
20
20
  "kind": 1024,
@@ -24,43 +24,27 @@
24
24
  "fileName": "find.ts",
25
25
  "line": 4,
26
26
  "character": 4,
27
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
27
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L4"
28
28
  }
29
29
  ],
30
30
  "type": {
31
31
  "type": "reflection",
32
32
  "declaration": {
33
- "id": 42,
33
+ "id": 85,
34
34
  "name": "__type",
35
35
  "variant": "declaration",
36
36
  "kind": 65536,
37
37
  "flags": {},
38
- "sources": [
39
- {
40
- "fileName": "find.ts",
41
- "line": 4,
42
- "character": 13,
43
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
44
- }
45
- ],
46
38
  "signatures": [
47
39
  {
48
- "id": 43,
40
+ "id": 86,
49
41
  "name": "__type",
50
42
  "variant": "signature",
51
43
  "kind": 4096,
52
44
  "flags": {},
53
- "sources": [
54
- {
55
- "fileName": "find.ts",
56
- "line": 4,
57
- "character": 13,
58
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
59
- }
60
- ],
61
45
  "parameters": [
62
46
  {
63
- "id": 44,
47
+ "id": 87,
64
48
  "name": "_path",
65
49
  "variant": "param",
66
50
  "kind": 32768,
@@ -71,7 +55,7 @@
71
55
  }
72
56
  },
73
57
  {
74
- "id": 45,
58
+ "id": 88,
75
59
  "name": "_opts",
76
60
  "variant": "param",
77
61
  "kind": 32768,
@@ -79,14 +63,14 @@
79
63
  "type": {
80
64
  "type": "reflection",
81
65
  "declaration": {
82
- "id": 46,
66
+ "id": 89,
83
67
  "name": "__type",
84
68
  "variant": "declaration",
85
69
  "kind": 65536,
86
70
  "flags": {},
87
71
  "children": [
88
72
  {
89
- "id": 47,
73
+ "id": 90,
90
74
  "name": "withFileTypes",
91
75
  "variant": "declaration",
92
76
  "kind": 1024,
@@ -96,7 +80,7 @@
96
80
  "fileName": "find.ts",
97
81
  "line": 4,
98
82
  "character": 38,
99
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
83
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L4"
100
84
  }
101
85
  ],
102
86
  "type": {
@@ -109,17 +93,9 @@
109
93
  {
110
94
  "title": "Properties",
111
95
  "children": [
112
- 47
96
+ 90
113
97
  ]
114
98
  }
115
- ],
116
- "sources": [
117
- {
118
- "fileName": "find.ts",
119
- "line": 4,
120
- "character": 36,
121
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
122
- }
123
99
  ]
124
100
  }
125
101
  }
@@ -138,14 +114,14 @@
138
114
  "elementType": {
139
115
  "type": "reflection",
140
116
  "declaration": {
141
- "id": 48,
117
+ "id": 91,
142
118
  "name": "__type",
143
119
  "variant": "declaration",
144
120
  "kind": 65536,
145
121
  "flags": {},
146
122
  "children": [
147
123
  {
148
- "id": 49,
124
+ "id": 92,
149
125
  "name": "name",
150
126
  "variant": "declaration",
151
127
  "kind": 1024,
@@ -155,7 +131,7 @@
155
131
  "fileName": "find.ts",
156
132
  "line": 4,
157
133
  "character": 74,
158
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
134
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L4"
159
135
  }
160
136
  ],
161
137
  "type": {
@@ -164,7 +140,7 @@
164
140
  }
165
141
  },
166
142
  {
167
- "id": 50,
143
+ "id": 93,
168
144
  "name": "isDirectory",
169
145
  "variant": "declaration",
170
146
  "kind": 2048,
@@ -174,12 +150,12 @@
174
150
  "fileName": "find.ts",
175
151
  "line": 4,
176
152
  "character": 88,
177
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
153
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L4"
178
154
  }
179
155
  ],
180
156
  "signatures": [
181
157
  {
182
- "id": 51,
158
+ "id": 94,
183
159
  "name": "isDirectory",
184
160
  "variant": "signature",
185
161
  "kind": 4096,
@@ -189,7 +165,7 @@
189
165
  "fileName": "find.ts",
190
166
  "line": 4,
191
167
  "character": 88,
192
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
168
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L4"
193
169
  }
194
170
  ],
195
171
  "type": {
@@ -204,23 +180,15 @@
204
180
  {
205
181
  "title": "Properties",
206
182
  "children": [
207
- 49
183
+ 92
208
184
  ]
209
185
  },
210
186
  {
211
187
  "title": "Methods",
212
188
  "children": [
213
- 50
189
+ 93
214
190
  ]
215
191
  }
216
- ],
217
- "sources": [
218
- {
219
- "fileName": "find.ts",
220
- "line": 4,
221
- "character": 72,
222
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L4"
223
- }
224
192
  ]
225
193
  }
226
194
  }
@@ -235,7 +203,7 @@
235
203
  }
236
204
  },
237
205
  {
238
- "id": 52,
206
+ "id": 95,
239
207
  "name": "stat",
240
208
  "variant": "declaration",
241
209
  "kind": 1024,
@@ -245,43 +213,27 @@
245
213
  "fileName": "find.ts",
246
214
  "line": 5,
247
215
  "character": 4,
248
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
216
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L5"
249
217
  }
250
218
  ],
251
219
  "type": {
252
220
  "type": "reflection",
253
221
  "declaration": {
254
- "id": 53,
222
+ "id": 96,
255
223
  "name": "__type",
256
224
  "variant": "declaration",
257
225
  "kind": 65536,
258
226
  "flags": {},
259
- "sources": [
260
- {
261
- "fileName": "find.ts",
262
- "line": 5,
263
- "character": 10,
264
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
265
- }
266
- ],
267
227
  "signatures": [
268
228
  {
269
- "id": 54,
229
+ "id": 97,
270
230
  "name": "__type",
271
231
  "variant": "signature",
272
232
  "kind": 4096,
273
233
  "flags": {},
274
- "sources": [
275
- {
276
- "fileName": "find.ts",
277
- "line": 5,
278
- "character": 10,
279
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
280
- }
281
- ],
282
234
  "parameters": [
283
235
  {
284
- "id": 55,
236
+ "id": 98,
285
237
  "name": "_path",
286
238
  "variant": "param",
287
239
  "kind": 32768,
@@ -303,14 +255,14 @@
303
255
  {
304
256
  "type": "reflection",
305
257
  "declaration": {
306
- "id": 56,
258
+ "id": 99,
307
259
  "name": "__type",
308
260
  "variant": "declaration",
309
261
  "kind": 65536,
310
262
  "flags": {},
311
263
  "children": [
312
264
  {
313
- "id": 57,
265
+ "id": 100,
314
266
  "name": "isDirectory",
315
267
  "variant": "declaration",
316
268
  "kind": 2048,
@@ -320,12 +272,12 @@
320
272
  "fileName": "find.ts",
321
273
  "line": 5,
322
274
  "character": 39,
323
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
275
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L5"
324
276
  }
325
277
  ],
326
278
  "signatures": [
327
279
  {
328
- "id": 58,
280
+ "id": 101,
329
281
  "name": "isDirectory",
330
282
  "variant": "signature",
331
283
  "kind": 4096,
@@ -335,7 +287,7 @@
335
287
  "fileName": "find.ts",
336
288
  "line": 5,
337
289
  "character": 39,
338
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
290
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L5"
339
291
  }
340
292
  ],
341
293
  "type": {
@@ -350,17 +302,9 @@
350
302
  {
351
303
  "title": "Methods",
352
304
  "children": [
353
- 57
305
+ 100
354
306
  ]
355
307
  }
356
- ],
357
- "sources": [
358
- {
359
- "fileName": "find.ts",
360
- "line": 5,
361
- "character": 37,
362
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L5"
363
- }
364
308
  ]
365
309
  }
366
310
  }
@@ -378,8 +322,8 @@
378
322
  {
379
323
  "title": "Properties",
380
324
  "children": [
381
- 41,
382
- 52
325
+ 84,
326
+ 95
383
327
  ]
384
328
  }
385
329
  ],
@@ -388,19 +332,19 @@
388
332
  "fileName": "find.ts",
389
333
  "line": 3,
390
334
  "character": 10,
391
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L3"
335
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L3"
392
336
  }
393
337
  ]
394
338
  },
395
339
  {
396
- "id": 27,
340
+ "id": 70,
397
341
  "name": "FindDirectoriesOptions",
398
342
  "variant": "declaration",
399
343
  "kind": 256,
400
344
  "flags": {},
401
345
  "children": [
402
346
  {
403
- "id": 30,
347
+ "id": 73,
404
348
  "name": "allowlist",
405
349
  "variant": "declaration",
406
350
  "kind": 1024,
@@ -412,7 +356,7 @@
412
356
  "fileName": "find.ts",
413
357
  "line": 11,
414
358
  "character": 4,
415
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L11"
359
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L11"
416
360
  }
417
361
  ],
418
362
  "type": {
@@ -428,37 +372,21 @@
428
372
  {
429
373
  "type": "reflection",
430
374
  "declaration": {
431
- "id": 31,
375
+ "id": 74,
432
376
  "name": "__type",
433
377
  "variant": "declaration",
434
378
  "kind": 65536,
435
379
  "flags": {},
436
- "sources": [
437
- {
438
- "fileName": "find.ts",
439
- "line": 11,
440
- "character": 28,
441
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L11"
442
- }
443
- ],
444
380
  "signatures": [
445
381
  {
446
- "id": 32,
382
+ "id": 75,
447
383
  "name": "__type",
448
384
  "variant": "signature",
449
385
  "kind": 4096,
450
386
  "flags": {},
451
- "sources": [
452
- {
453
- "fileName": "find.ts",
454
- "line": 11,
455
- "character": 28,
456
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L11"
457
- }
458
- ],
459
387
  "parameters": [
460
388
  {
461
- "id": 33,
389
+ "id": 76,
462
390
  "name": "_absPath",
463
391
  "variant": "param",
464
392
  "kind": 32768,
@@ -469,7 +397,7 @@
469
397
  }
470
398
  },
471
399
  {
472
- "id": 34,
400
+ "id": 77,
473
401
  "name": "_name",
474
402
  "variant": "param",
475
403
  "kind": 32768,
@@ -492,7 +420,7 @@
492
420
  }
493
421
  },
494
422
  {
495
- "id": 35,
423
+ "id": 78,
496
424
  "name": "blocklist",
497
425
  "variant": "declaration",
498
426
  "kind": 1024,
@@ -504,7 +432,7 @@
504
432
  "fileName": "find.ts",
505
433
  "line": 12,
506
434
  "character": 4,
507
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L12"
435
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L12"
508
436
  }
509
437
  ],
510
438
  "type": {
@@ -520,37 +448,21 @@
520
448
  {
521
449
  "type": "reflection",
522
450
  "declaration": {
523
- "id": 36,
451
+ "id": 79,
524
452
  "name": "__type",
525
453
  "variant": "declaration",
526
454
  "kind": 65536,
527
455
  "flags": {},
528
- "sources": [
529
- {
530
- "fileName": "find.ts",
531
- "line": 12,
532
- "character": 28,
533
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L12"
534
- }
535
- ],
536
456
  "signatures": [
537
457
  {
538
- "id": 37,
458
+ "id": 80,
539
459
  "name": "__type",
540
460
  "variant": "signature",
541
461
  "kind": 4096,
542
462
  "flags": {},
543
- "sources": [
544
- {
545
- "fileName": "find.ts",
546
- "line": 12,
547
- "character": 28,
548
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L12"
549
- }
550
- ],
551
463
  "parameters": [
552
464
  {
553
- "id": 38,
465
+ "id": 81,
554
466
  "name": "_absPath",
555
467
  "variant": "param",
556
468
  "kind": 32768,
@@ -561,7 +473,7 @@
561
473
  }
562
474
  },
563
475
  {
564
- "id": 39,
476
+ "id": 82,
565
477
  "name": "_name",
566
478
  "variant": "param",
567
479
  "kind": 32768,
@@ -584,7 +496,7 @@
584
496
  }
585
497
  },
586
498
  {
587
- "id": 29,
499
+ "id": 72,
588
500
  "name": "followSymlinks",
589
501
  "variant": "declaration",
590
502
  "kind": 1024,
@@ -596,7 +508,7 @@
596
508
  "fileName": "find.ts",
597
509
  "line": 10,
598
510
  "character": 4,
599
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L10"
511
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L10"
600
512
  }
601
513
  ],
602
514
  "type": {
@@ -605,7 +517,7 @@
605
517
  }
606
518
  },
607
519
  {
608
- "id": 28,
520
+ "id": 71,
609
521
  "name": "maxDepth",
610
522
  "variant": "declaration",
611
523
  "kind": 1024,
@@ -617,7 +529,7 @@
617
529
  "fileName": "find.ts",
618
530
  "line": 9,
619
531
  "character": 4,
620
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L9"
532
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L9"
621
533
  }
622
534
  ],
623
535
  "type": {
@@ -630,10 +542,10 @@
630
542
  {
631
543
  "title": "Properties",
632
544
  "children": [
633
- 30,
634
- 35,
635
- 29,
636
- 28
545
+ 73,
546
+ 78,
547
+ 72,
548
+ 71
637
549
  ]
638
550
  }
639
551
  ],
@@ -642,12 +554,12 @@
642
554
  "fileName": "find.ts",
643
555
  "line": 8,
644
556
  "character": 10,
645
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L8"
557
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L8"
646
558
  }
647
559
  ]
648
560
  },
649
561
  {
650
- "id": 59,
562
+ "id": 102,
651
563
  "name": "UserAgentInfo",
652
564
  "variant": "declaration",
653
565
  "kind": 256,
@@ -662,7 +574,7 @@
662
574
  },
663
575
  "children": [
664
576
  {
665
- "id": 60,
577
+ "id": 103,
666
578
  "name": "browser",
667
579
  "variant": "declaration",
668
580
  "kind": 1024,
@@ -680,7 +592,7 @@
680
592
  "fileName": "user-agent.ts",
681
593
  "line": 8,
682
594
  "character": 4,
683
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L8"
595
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L8"
684
596
  }
685
597
  ],
686
598
  "type": {
@@ -689,7 +601,7 @@
689
601
  }
690
602
  },
691
603
  {
692
- "id": 63,
604
+ "id": 106,
693
605
  "name": "device",
694
606
  "variant": "declaration",
695
607
  "kind": 1024,
@@ -707,7 +619,7 @@
707
619
  "fileName": "user-agent.ts",
708
620
  "line": 20,
709
621
  "character": 4,
710
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L20"
622
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L20"
711
623
  }
712
624
  ],
713
625
  "type": {
@@ -716,7 +628,7 @@
716
628
  }
717
629
  },
718
630
  {
719
- "id": 64,
631
+ "id": 107,
720
632
  "name": "engine",
721
633
  "variant": "declaration",
722
634
  "kind": 1024,
@@ -734,7 +646,7 @@
734
646
  "fileName": "user-agent.ts",
735
647
  "line": 24,
736
648
  "character": 4,
737
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L24"
649
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L24"
738
650
  }
739
651
  ],
740
652
  "type": {
@@ -743,7 +655,7 @@
743
655
  }
744
656
  },
745
657
  {
746
- "id": 62,
658
+ "id": 105,
747
659
  "name": "os",
748
660
  "variant": "declaration",
749
661
  "kind": 1024,
@@ -761,7 +673,7 @@
761
673
  "fileName": "user-agent.ts",
762
674
  "line": 16,
763
675
  "character": 4,
764
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L16"
676
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L16"
765
677
  }
766
678
  ],
767
679
  "type": {
@@ -770,7 +682,7 @@
770
682
  }
771
683
  },
772
684
  {
773
- "id": 61,
685
+ "id": 104,
774
686
  "name": "version",
775
687
  "variant": "declaration",
776
688
  "kind": 1024,
@@ -788,7 +700,7 @@
788
700
  "fileName": "user-agent.ts",
789
701
  "line": 12,
790
702
  "character": 4,
791
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L12"
703
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L12"
792
704
  }
793
705
  ],
794
706
  "type": {
@@ -801,11 +713,11 @@
801
713
  {
802
714
  "title": "Properties",
803
715
  "children": [
804
- 60,
805
- 63,
806
- 64,
807
- 62,
808
- 61
716
+ 103,
717
+ 106,
718
+ 107,
719
+ 105,
720
+ 104
809
721
  ]
810
722
  }
811
723
  ],
@@ -814,12 +726,90 @@
814
726
  "fileName": "user-agent.ts",
815
727
  "line": 4,
816
728
  "character": 17,
817
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L4"
729
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L4"
818
730
  }
819
731
  ]
820
732
  },
821
733
  {
822
- "id": 65,
734
+ "id": 111,
735
+ "name": "Base32CharsetType",
736
+ "variant": "declaration",
737
+ "kind": 2097152,
738
+ "flags": {},
739
+ "comment": {
740
+ "summary": [
741
+ {
742
+ "kind": "text",
743
+ "text": "Base32 charset type."
744
+ }
745
+ ]
746
+ },
747
+ "sources": [
748
+ {
749
+ "fileName": "base32.ts",
750
+ "line": 18,
751
+ "character": 5,
752
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L18"
753
+ }
754
+ ],
755
+ "type": {
756
+ "type": "indexedAccess",
757
+ "indexType": {
758
+ "type": "intrinsic",
759
+ "name": "number"
760
+ },
761
+ "objectType": {
762
+ "type": "query",
763
+ "queryType": {
764
+ "type": "reference",
765
+ "target": 53,
766
+ "name": "Base32Charset",
767
+ "package": "@wtasnorg/node-lib"
768
+ }
769
+ }
770
+ }
771
+ },
772
+ {
773
+ "id": 109,
774
+ "name": "Base58CharsetType",
775
+ "variant": "declaration",
776
+ "kind": 2097152,
777
+ "flags": {},
778
+ "comment": {
779
+ "summary": [
780
+ {
781
+ "kind": "text",
782
+ "text": "Base58 charset type."
783
+ }
784
+ ]
785
+ },
786
+ "sources": [
787
+ {
788
+ "fileName": "base58.ts",
789
+ "line": 18,
790
+ "character": 5,
791
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L18"
792
+ }
793
+ ],
794
+ "type": {
795
+ "type": "indexedAccess",
796
+ "indexType": {
797
+ "type": "intrinsic",
798
+ "name": "number"
799
+ },
800
+ "objectType": {
801
+ "type": "query",
802
+ "queryType": {
803
+ "type": "reference",
804
+ "target": 35,
805
+ "name": "Base58Charset",
806
+ "package": "@wtasnorg/node-lib"
807
+ }
808
+ }
809
+ }
810
+ },
811
+ {
812
+ "id": 108,
823
813
  "name": "Base64CharsetType",
824
814
  "variant": "declaration",
825
815
  "kind": 2097152,
@@ -837,7 +827,7 @@
837
827
  "fileName": "base64.ts",
838
828
  "line": 18,
839
829
  "character": 5,
840
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L18"
830
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L18"
841
831
  }
842
832
  ],
843
833
  "type": {
@@ -857,6 +847,187 @@
857
847
  }
858
848
  }
859
849
  },
850
+ {
851
+ "id": 110,
852
+ "name": "Base85CharsetType",
853
+ "variant": "declaration",
854
+ "kind": 2097152,
855
+ "flags": {},
856
+ "comment": {
857
+ "summary": [
858
+ {
859
+ "kind": "text",
860
+ "text": "Base85 charset type."
861
+ }
862
+ ]
863
+ },
864
+ "sources": [
865
+ {
866
+ "fileName": "base85.ts",
867
+ "line": 18,
868
+ "character": 5,
869
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L18"
870
+ }
871
+ ],
872
+ "type": {
873
+ "type": "indexedAccess",
874
+ "indexType": {
875
+ "type": "intrinsic",
876
+ "name": "number"
877
+ },
878
+ "objectType": {
879
+ "type": "query",
880
+ "queryType": {
881
+ "type": "reference",
882
+ "target": 44,
883
+ "name": "Base85Charset",
884
+ "package": "@wtasnorg/node-lib"
885
+ }
886
+ }
887
+ }
888
+ },
889
+ {
890
+ "id": 53,
891
+ "name": "Base32Charset",
892
+ "variant": "declaration",
893
+ "kind": 32,
894
+ "flags": {
895
+ "isConst": true
896
+ },
897
+ "comment": {
898
+ "summary": [
899
+ {
900
+ "kind": "text",
901
+ "text": "Available Base32 charset variants.\n- "
902
+ },
903
+ {
904
+ "kind": "code",
905
+ "text": "`rfc4648`"
906
+ },
907
+ {
908
+ "kind": "text",
909
+ "text": ": Standard RFC 4648 alphabet (A-Z, 2-7)\n- "
910
+ },
911
+ {
912
+ "kind": "code",
913
+ "text": "`hex`"
914
+ },
915
+ {
916
+ "kind": "text",
917
+ "text": ": Extended hex alphabet (0-9, A-V)\n- "
918
+ },
919
+ {
920
+ "kind": "code",
921
+ "text": "`crockford`"
922
+ },
923
+ {
924
+ "kind": "text",
925
+ "text": ": Douglas Crockford's alphabet (excludes I, L, O, U)"
926
+ }
927
+ ]
928
+ },
929
+ "sources": [
930
+ {
931
+ "fileName": "base32.ts",
932
+ "line": 13,
933
+ "character": 6,
934
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L13"
935
+ }
936
+ ],
937
+ "type": {
938
+ "type": "typeOperator",
939
+ "operator": "readonly",
940
+ "target": {
941
+ "type": "tuple",
942
+ "elements": [
943
+ {
944
+ "type": "literal",
945
+ "value": "rfc4648"
946
+ },
947
+ {
948
+ "type": "literal",
949
+ "value": "hex"
950
+ },
951
+ {
952
+ "type": "literal",
953
+ "value": "crockford"
954
+ }
955
+ ]
956
+ }
957
+ },
958
+ "defaultValue": "..."
959
+ },
960
+ {
961
+ "id": 35,
962
+ "name": "Base58Charset",
963
+ "variant": "declaration",
964
+ "kind": 32,
965
+ "flags": {
966
+ "isConst": true
967
+ },
968
+ "comment": {
969
+ "summary": [
970
+ {
971
+ "kind": "text",
972
+ "text": "Available Base58 charset variants.\n- "
973
+ },
974
+ {
975
+ "kind": "code",
976
+ "text": "`bitcoin`"
977
+ },
978
+ {
979
+ "kind": "text",
980
+ "text": ": Bitcoin/IPFS alphabet (default)\n- "
981
+ },
982
+ {
983
+ "kind": "code",
984
+ "text": "`flickr`"
985
+ },
986
+ {
987
+ "kind": "text",
988
+ "text": ": Flickr short URLs (swaps case)\n- "
989
+ },
990
+ {
991
+ "kind": "code",
992
+ "text": "`ripple`"
993
+ },
994
+ {
995
+ "kind": "text",
996
+ "text": ": Ripple addresses"
997
+ }
998
+ ]
999
+ },
1000
+ "sources": [
1001
+ {
1002
+ "fileName": "base58.ts",
1003
+ "line": 13,
1004
+ "character": 6,
1005
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L13"
1006
+ }
1007
+ ],
1008
+ "type": {
1009
+ "type": "typeOperator",
1010
+ "operator": "readonly",
1011
+ "target": {
1012
+ "type": "tuple",
1013
+ "elements": [
1014
+ {
1015
+ "type": "literal",
1016
+ "value": "bitcoin"
1017
+ },
1018
+ {
1019
+ "type": "literal",
1020
+ "value": "flickr"
1021
+ },
1022
+ {
1023
+ "type": "literal",
1024
+ "value": "ripple"
1025
+ }
1026
+ ]
1027
+ }
1028
+ },
1029
+ "defaultValue": "..."
1030
+ },
860
1031
  {
861
1032
  "id": 26,
862
1033
  "name": "Base64Charset",
@@ -910,7 +1081,7 @@
910
1081
  "fileName": "base64.ts",
911
1082
  "line": 13,
912
1083
  "character": 6,
913
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L13"
1084
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L13"
914
1085
  }
915
1086
  ],
916
1087
  "type": {
@@ -941,23 +1112,1067 @@
941
1112
  "defaultValue": "..."
942
1113
  },
943
1114
  {
944
- "id": 8,
945
- "name": "createFindDirectories",
1115
+ "id": 44,
1116
+ "name": "Base85Charset",
946
1117
  "variant": "declaration",
947
- "kind": 64,
948
- "flags": {},
949
- "sources": [
950
- {
951
- "fileName": "find.ts",
952
- "line": 19,
1118
+ "kind": 32,
1119
+ "flags": {
1120
+ "isConst": true
1121
+ },
1122
+ "comment": {
1123
+ "summary": [
1124
+ {
1125
+ "kind": "text",
1126
+ "text": "Available Base85 charset variants.\n- "
1127
+ },
1128
+ {
1129
+ "kind": "code",
1130
+ "text": "`ascii85`"
1131
+ },
1132
+ {
1133
+ "kind": "text",
1134
+ "text": ": Adobe Ascii85 (btoa format)\n- "
1135
+ },
1136
+ {
1137
+ "kind": "code",
1138
+ "text": "`z85`"
1139
+ },
1140
+ {
1141
+ "kind": "text",
1142
+ "text": ": ZeroMQ Base85 (no quotes or backslash)\n- "
1143
+ },
1144
+ {
1145
+ "kind": "code",
1146
+ "text": "`rfc1924`"
1147
+ },
1148
+ {
1149
+ "kind": "text",
1150
+ "text": ": RFC 1924 IPv6 encoding"
1151
+ }
1152
+ ]
1153
+ },
1154
+ "sources": [
1155
+ {
1156
+ "fileName": "base85.ts",
1157
+ "line": 13,
1158
+ "character": 6,
1159
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L13"
1160
+ }
1161
+ ],
1162
+ "type": {
1163
+ "type": "typeOperator",
1164
+ "operator": "readonly",
1165
+ "target": {
1166
+ "type": "tuple",
1167
+ "elements": [
1168
+ {
1169
+ "type": "literal",
1170
+ "value": "ascii85"
1171
+ },
1172
+ {
1173
+ "type": "literal",
1174
+ "value": "z85"
1175
+ },
1176
+ {
1177
+ "type": "literal",
1178
+ "value": "rfc1924"
1179
+ }
1180
+ ]
1181
+ }
1182
+ },
1183
+ "defaultValue": "..."
1184
+ },
1185
+ {
1186
+ "id": 60,
1187
+ "name": "countOnes",
1188
+ "variant": "declaration",
1189
+ "kind": 64,
1190
+ "flags": {},
1191
+ "sources": [
1192
+ {
1193
+ "fileName": "bits.ts",
1194
+ "line": 81,
1195
+ "character": 9,
1196
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L81"
1197
+ }
1198
+ ],
1199
+ "signatures": [
1200
+ {
1201
+ "id": 61,
1202
+ "name": "countOnes",
1203
+ "variant": "signature",
1204
+ "kind": 4096,
1205
+ "flags": {},
1206
+ "comment": {
1207
+ "summary": [
1208
+ {
1209
+ "kind": "text",
1210
+ "text": "Count set bits in a non-negative integer."
1211
+ }
1212
+ ],
1213
+ "blockTags": [
1214
+ {
1215
+ "tag": "@returns",
1216
+ "content": [
1217
+ {
1218
+ "kind": "text",
1219
+ "text": "Number of set bits."
1220
+ }
1221
+ ]
1222
+ },
1223
+ {
1224
+ "tag": "@throws",
1225
+ "content": [
1226
+ {
1227
+ "kind": "text",
1228
+ "text": "If "
1229
+ },
1230
+ {
1231
+ "kind": "code",
1232
+ "text": "`value`"
1233
+ },
1234
+ {
1235
+ "kind": "text",
1236
+ "text": " is negative or an unsafe integer."
1237
+ }
1238
+ ]
1239
+ }
1240
+ ]
1241
+ },
1242
+ "sources": [
1243
+ {
1244
+ "fileName": "bits.ts",
1245
+ "line": 81,
1246
+ "character": 9,
1247
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L81"
1248
+ }
1249
+ ],
1250
+ "parameters": [
1251
+ {
1252
+ "id": 62,
1253
+ "name": "value",
1254
+ "variant": "param",
1255
+ "kind": 32768,
1256
+ "flags": {},
1257
+ "comment": {
1258
+ "summary": [
1259
+ {
1260
+ "kind": "text",
1261
+ "text": "Input value."
1262
+ }
1263
+ ]
1264
+ },
1265
+ "type": {
1266
+ "type": "union",
1267
+ "types": [
1268
+ {
1269
+ "type": "intrinsic",
1270
+ "name": "number"
1271
+ },
1272
+ {
1273
+ "type": "intrinsic",
1274
+ "name": "bigint"
1275
+ }
1276
+ ]
1277
+ }
1278
+ }
1279
+ ],
1280
+ "type": {
1281
+ "type": "intrinsic",
1282
+ "name": "number"
1283
+ }
1284
+ }
1285
+ ]
1286
+ },
1287
+ {
1288
+ "id": 67,
1289
+ "name": "countZeroes",
1290
+ "variant": "declaration",
1291
+ "kind": 64,
1292
+ "flags": {},
1293
+ "sources": [
1294
+ {
1295
+ "fileName": "bits.ts",
1296
+ "line": 118,
1297
+ "character": 9,
1298
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L118"
1299
+ }
1300
+ ],
1301
+ "signatures": [
1302
+ {
1303
+ "id": 68,
1304
+ "name": "countZeroes",
1305
+ "variant": "signature",
1306
+ "kind": 4096,
1307
+ "flags": {},
1308
+ "comment": {
1309
+ "summary": [
1310
+ {
1311
+ "kind": "text",
1312
+ "text": "Count zero bits from LSB up to and including the highest set bit.\nFor zero input, returns 0."
1313
+ }
1314
+ ],
1315
+ "blockTags": [
1316
+ {
1317
+ "tag": "@returns",
1318
+ "content": [
1319
+ {
1320
+ "kind": "text",
1321
+ "text": "Zero count up to the left-most set bit."
1322
+ }
1323
+ ]
1324
+ },
1325
+ {
1326
+ "tag": "@throws",
1327
+ "content": [
1328
+ {
1329
+ "kind": "text",
1330
+ "text": "If "
1331
+ },
1332
+ {
1333
+ "kind": "code",
1334
+ "text": "`value`"
1335
+ },
1336
+ {
1337
+ "kind": "text",
1338
+ "text": " is negative or an unsafe integer."
1339
+ }
1340
+ ]
1341
+ }
1342
+ ]
1343
+ },
1344
+ "sources": [
1345
+ {
1346
+ "fileName": "bits.ts",
1347
+ "line": 118,
1348
+ "character": 9,
1349
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L118"
1350
+ }
1351
+ ],
1352
+ "parameters": [
1353
+ {
1354
+ "id": 69,
1355
+ "name": "value",
1356
+ "variant": "param",
1357
+ "kind": 32768,
1358
+ "flags": {},
1359
+ "comment": {
1360
+ "summary": [
1361
+ {
1362
+ "kind": "text",
1363
+ "text": "Input value."
1364
+ }
1365
+ ]
1366
+ },
1367
+ "type": {
1368
+ "type": "union",
1369
+ "types": [
1370
+ {
1371
+ "type": "intrinsic",
1372
+ "name": "number"
1373
+ },
1374
+ {
1375
+ "type": "intrinsic",
1376
+ "name": "bigint"
1377
+ }
1378
+ ]
1379
+ }
1380
+ }
1381
+ ],
1382
+ "type": {
1383
+ "type": "intrinsic",
1384
+ "name": "number"
1385
+ }
1386
+ }
1387
+ ]
1388
+ },
1389
+ {
1390
+ "id": 63,
1391
+ "name": "countZeroesWithWidth",
1392
+ "variant": "declaration",
1393
+ "kind": 64,
1394
+ "flags": {},
1395
+ "sources": [
1396
+ {
1397
+ "fileName": "bits.ts",
1398
+ "line": 94,
1399
+ "character": 9,
1400
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L94"
1401
+ }
1402
+ ],
1403
+ "signatures": [
1404
+ {
1405
+ "id": 64,
1406
+ "name": "countZeroesWithWidth",
1407
+ "variant": "signature",
1408
+ "kind": 4096,
1409
+ "flags": {},
1410
+ "comment": {
1411
+ "summary": [
1412
+ {
1413
+ "kind": "text",
1414
+ "text": "Count zero bits within a fixed width, considering only low-order "
1415
+ },
1416
+ {
1417
+ "kind": "code",
1418
+ "text": "`width`"
1419
+ },
1420
+ {
1421
+ "kind": "text",
1422
+ "text": " bits."
1423
+ }
1424
+ ],
1425
+ "blockTags": [
1426
+ {
1427
+ "tag": "@returns",
1428
+ "content": [
1429
+ {
1430
+ "kind": "text",
1431
+ "text": "Number of zero bits in the selected width."
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "tag": "@throws",
1437
+ "content": [
1438
+ {
1439
+ "kind": "text",
1440
+ "text": "If "
1441
+ },
1442
+ {
1443
+ "kind": "code",
1444
+ "text": "`value`"
1445
+ },
1446
+ {
1447
+ "kind": "text",
1448
+ "text": " is negative/unsafe or "
1449
+ },
1450
+ {
1451
+ "kind": "code",
1452
+ "text": "`width`"
1453
+ },
1454
+ {
1455
+ "kind": "text",
1456
+ "text": " is negative/unsafe."
1457
+ }
1458
+ ]
1459
+ }
1460
+ ]
1461
+ },
1462
+ "sources": [
1463
+ {
1464
+ "fileName": "bits.ts",
1465
+ "line": 94,
1466
+ "character": 9,
1467
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L94"
1468
+ }
1469
+ ],
1470
+ "parameters": [
1471
+ {
1472
+ "id": 65,
1473
+ "name": "value",
1474
+ "variant": "param",
1475
+ "kind": 32768,
1476
+ "flags": {},
1477
+ "comment": {
1478
+ "summary": [
1479
+ {
1480
+ "kind": "text",
1481
+ "text": "Input value."
1482
+ }
1483
+ ]
1484
+ },
1485
+ "type": {
1486
+ "type": "union",
1487
+ "types": [
1488
+ {
1489
+ "type": "intrinsic",
1490
+ "name": "number"
1491
+ },
1492
+ {
1493
+ "type": "intrinsic",
1494
+ "name": "bigint"
1495
+ }
1496
+ ]
1497
+ }
1498
+ },
1499
+ {
1500
+ "id": 66,
1501
+ "name": "width",
1502
+ "variant": "param",
1503
+ "kind": 32768,
1504
+ "flags": {},
1505
+ "comment": {
1506
+ "summary": [
1507
+ {
1508
+ "kind": "text",
1509
+ "text": "Bit width to inspect."
1510
+ }
1511
+ ]
1512
+ },
1513
+ "type": {
1514
+ "type": "intrinsic",
1515
+ "name": "number"
1516
+ }
1517
+ }
1518
+ ],
1519
+ "type": {
1520
+ "type": "intrinsic",
1521
+ "name": "number"
1522
+ }
1523
+ }
1524
+ ]
1525
+ },
1526
+ {
1527
+ "id": 8,
1528
+ "name": "createFindDirectories",
1529
+ "variant": "declaration",
1530
+ "kind": 64,
1531
+ "flags": {},
1532
+ "sources": [
1533
+ {
1534
+ "fileName": "find.ts",
1535
+ "line": 19,
1536
+ "character": 9,
1537
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L19"
1538
+ }
1539
+ ],
1540
+ "signatures": [
1541
+ {
1542
+ "id": 9,
1543
+ "name": "createFindDirectories",
1544
+ "variant": "signature",
1545
+ "kind": 4096,
1546
+ "flags": {},
1547
+ "comment": {
1548
+ "summary": [
1549
+ {
1550
+ "kind": "text",
1551
+ "text": "Factory that produces an async findDirectories function with\ninjected filesystem dependencies for full testability."
1552
+ }
1553
+ ]
1554
+ },
1555
+ "sources": [
1556
+ {
1557
+ "fileName": "find.ts",
1558
+ "line": 19,
1559
+ "character": 9,
1560
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/find.ts#L19"
1561
+ }
1562
+ ],
1563
+ "parameters": [
1564
+ {
1565
+ "id": 10,
1566
+ "name": "deps",
1567
+ "variant": "param",
1568
+ "kind": 32768,
1569
+ "flags": {},
1570
+ "type": {
1571
+ "type": "reference",
1572
+ "target": 83,
1573
+ "name": "FileSystemDependencies",
1574
+ "package": "@wtasnorg/node-lib"
1575
+ }
1576
+ }
1577
+ ],
1578
+ "type": {
1579
+ "type": "reflection",
1580
+ "declaration": {
1581
+ "id": 11,
1582
+ "name": "__type",
1583
+ "variant": "declaration",
1584
+ "kind": 65536,
1585
+ "flags": {},
1586
+ "signatures": [
1587
+ {
1588
+ "id": 12,
1589
+ "name": "__type",
1590
+ "variant": "signature",
1591
+ "kind": 4096,
1592
+ "flags": {},
1593
+ "parameters": [
1594
+ {
1595
+ "id": 13,
1596
+ "name": "root",
1597
+ "variant": "param",
1598
+ "kind": 32768,
1599
+ "flags": {},
1600
+ "type": {
1601
+ "type": "intrinsic",
1602
+ "name": "string"
1603
+ }
1604
+ },
1605
+ {
1606
+ "id": 14,
1607
+ "name": "options",
1608
+ "variant": "param",
1609
+ "kind": 32768,
1610
+ "flags": {},
1611
+ "type": {
1612
+ "type": "reference",
1613
+ "target": 70,
1614
+ "name": "FindDirectoriesOptions",
1615
+ "package": "@wtasnorg/node-lib"
1616
+ },
1617
+ "defaultValue": "{}"
1618
+ }
1619
+ ],
1620
+ "type": {
1621
+ "type": "reference",
1622
+ "target": {
1623
+ "packageName": "typescript",
1624
+ "packagePath": "lib/lib.es5.d.ts",
1625
+ "qualifiedName": "Promise"
1626
+ },
1627
+ "typeArguments": [
1628
+ {
1629
+ "type": "array",
1630
+ "elementType": {
1631
+ "type": "intrinsic",
1632
+ "name": "string"
1633
+ }
1634
+ }
1635
+ ],
1636
+ "name": "Promise",
1637
+ "package": "typescript"
1638
+ }
1639
+ }
1640
+ ]
1641
+ }
1642
+ }
1643
+ }
1644
+ ]
1645
+ },
1646
+ {
1647
+ "id": 22,
1648
+ "name": "decode",
1649
+ "variant": "declaration",
1650
+ "kind": 64,
1651
+ "flags": {},
1652
+ "sources": [
1653
+ {
1654
+ "fileName": "base64.ts",
1655
+ "line": 119,
1656
+ "character": 9,
1657
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L119"
1658
+ }
1659
+ ],
1660
+ "signatures": [
1661
+ {
1662
+ "id": 23,
1663
+ "name": "decode",
1664
+ "variant": "signature",
1665
+ "kind": 4096,
1666
+ "flags": {},
1667
+ "comment": {
1668
+ "summary": [
1669
+ {
1670
+ "kind": "text",
1671
+ "text": "Decode a Base64 string."
1672
+ }
1673
+ ],
1674
+ "blockTags": [
1675
+ {
1676
+ "tag": "@example",
1677
+ "content": [
1678
+ {
1679
+ "kind": "code",
1680
+ "text": "```typescript\nimport { decode } from \"./base64.js\";\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\");\n// => \"Hello, World!\"\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\", \"standard\");\n// => \"Hello, World!\"\n```"
1681
+ }
1682
+ ]
1683
+ },
1684
+ {
1685
+ "tag": "@returns",
1686
+ "content": [
1687
+ {
1688
+ "kind": "text",
1689
+ "text": "The decoded string."
1690
+ }
1691
+ ]
1692
+ },
1693
+ {
1694
+ "tag": "@throws",
1695
+ "content": [
1696
+ {
1697
+ "kind": "text",
1698
+ "text": "Error if the input contains invalid characters."
1699
+ }
1700
+ ]
1701
+ }
1702
+ ]
1703
+ },
1704
+ "sources": [
1705
+ {
1706
+ "fileName": "base64.ts",
1707
+ "line": 119,
1708
+ "character": 9,
1709
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L119"
1710
+ }
1711
+ ],
1712
+ "parameters": [
1713
+ {
1714
+ "id": 24,
1715
+ "name": "input",
1716
+ "variant": "param",
1717
+ "kind": 32768,
1718
+ "flags": {},
1719
+ "comment": {
1720
+ "summary": [
1721
+ {
1722
+ "kind": "text",
1723
+ "text": "The Base64 encoded string."
1724
+ }
1725
+ ]
1726
+ },
1727
+ "type": {
1728
+ "type": "intrinsic",
1729
+ "name": "string"
1730
+ }
1731
+ },
1732
+ {
1733
+ "id": 25,
1734
+ "name": "charset",
1735
+ "variant": "param",
1736
+ "kind": 32768,
1737
+ "flags": {},
1738
+ "comment": {
1739
+ "summary": [
1740
+ {
1741
+ "kind": "text",
1742
+ "text": "The charset variant to use (default: \"standard\")."
1743
+ }
1744
+ ]
1745
+ },
1746
+ "type": {
1747
+ "type": "union",
1748
+ "types": [
1749
+ {
1750
+ "type": "literal",
1751
+ "value": "standard"
1752
+ },
1753
+ {
1754
+ "type": "literal",
1755
+ "value": "urlsafe"
1756
+ },
1757
+ {
1758
+ "type": "literal",
1759
+ "value": "imap"
1760
+ },
1761
+ {
1762
+ "type": "literal",
1763
+ "value": "radix64"
1764
+ }
1765
+ ]
1766
+ },
1767
+ "defaultValue": "\"standard\""
1768
+ }
1769
+ ],
1770
+ "type": {
1771
+ "type": "intrinsic",
1772
+ "name": "string"
1773
+ }
1774
+ }
1775
+ ]
1776
+ },
1777
+ {
1778
+ "id": 49,
1779
+ "name": "decode32",
1780
+ "variant": "declaration",
1781
+ "kind": 64,
1782
+ "flags": {},
1783
+ "sources": [
1784
+ {
1785
+ "fileName": "base32.ts",
1786
+ "line": 136,
1787
+ "character": 9,
1788
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L136"
1789
+ }
1790
+ ],
1791
+ "signatures": [
1792
+ {
1793
+ "id": 50,
1794
+ "name": "decode32",
1795
+ "variant": "signature",
1796
+ "kind": 4096,
1797
+ "flags": {},
1798
+ "comment": {
1799
+ "summary": [
1800
+ {
1801
+ "kind": "text",
1802
+ "text": "Decode a Base32 string."
1803
+ }
1804
+ ],
1805
+ "blockTags": [
1806
+ {
1807
+ "tag": "@example",
1808
+ "content": [
1809
+ {
1810
+ "kind": "code",
1811
+ "text": "```typescript\nimport { decode32 } from \"./base32.js\";\n\ndecode32(\"JBSWY3DP\");\n// => \"Hello\"\n\ndecode32(\"EHMP6SS=\", \"hex\");\n// => \"test\"\n```"
1812
+ }
1813
+ ]
1814
+ },
1815
+ {
1816
+ "tag": "@returns",
1817
+ "content": [
1818
+ {
1819
+ "kind": "text",
1820
+ "text": "The decoded string."
1821
+ }
1822
+ ]
1823
+ },
1824
+ {
1825
+ "tag": "@throws",
1826
+ "content": [
1827
+ {
1828
+ "kind": "text",
1829
+ "text": "Error if the input contains invalid characters."
1830
+ }
1831
+ ]
1832
+ }
1833
+ ]
1834
+ },
1835
+ "sources": [
1836
+ {
1837
+ "fileName": "base32.ts",
1838
+ "line": 136,
1839
+ "character": 9,
1840
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L136"
1841
+ }
1842
+ ],
1843
+ "parameters": [
1844
+ {
1845
+ "id": 51,
1846
+ "name": "input",
1847
+ "variant": "param",
1848
+ "kind": 32768,
1849
+ "flags": {},
1850
+ "comment": {
1851
+ "summary": [
1852
+ {
1853
+ "kind": "text",
1854
+ "text": "The Base32 encoded string."
1855
+ }
1856
+ ]
1857
+ },
1858
+ "type": {
1859
+ "type": "intrinsic",
1860
+ "name": "string"
1861
+ }
1862
+ },
1863
+ {
1864
+ "id": 52,
1865
+ "name": "charset",
1866
+ "variant": "param",
1867
+ "kind": 32768,
1868
+ "flags": {},
1869
+ "comment": {
1870
+ "summary": [
1871
+ {
1872
+ "kind": "text",
1873
+ "text": "The charset variant to use (default: \"rfc4648\")."
1874
+ }
1875
+ ]
1876
+ },
1877
+ "type": {
1878
+ "type": "union",
1879
+ "types": [
1880
+ {
1881
+ "type": "literal",
1882
+ "value": "rfc4648"
1883
+ },
1884
+ {
1885
+ "type": "literal",
1886
+ "value": "hex"
1887
+ },
1888
+ {
1889
+ "type": "literal",
1890
+ "value": "crockford"
1891
+ }
1892
+ ]
1893
+ },
1894
+ "defaultValue": "\"rfc4648\""
1895
+ }
1896
+ ],
1897
+ "type": {
1898
+ "type": "intrinsic",
1899
+ "name": "string"
1900
+ }
1901
+ }
1902
+ ]
1903
+ },
1904
+ {
1905
+ "id": 31,
1906
+ "name": "decode58",
1907
+ "variant": "declaration",
1908
+ "kind": 64,
1909
+ "flags": {},
1910
+ "sources": [
1911
+ {
1912
+ "fileName": "base58.ts",
1913
+ "line": 132,
1914
+ "character": 9,
1915
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L132"
1916
+ }
1917
+ ],
1918
+ "signatures": [
1919
+ {
1920
+ "id": 32,
1921
+ "name": "decode58",
1922
+ "variant": "signature",
1923
+ "kind": 4096,
1924
+ "flags": {},
1925
+ "comment": {
1926
+ "summary": [
1927
+ {
1928
+ "kind": "text",
1929
+ "text": "Decode a Base58 string."
1930
+ }
1931
+ ],
1932
+ "blockTags": [
1933
+ {
1934
+ "tag": "@example",
1935
+ "content": [
1936
+ {
1937
+ "kind": "code",
1938
+ "text": "```typescript\nimport { decode58 } from \"./base58.js\";\n\ndecode58(\"JxF12TrwUP45BMd\");\n// => \"Hello World\"\n\ndecode58(\"jXf12sRWto45bmD\", \"flickr\");\n// => \"Hello World\"\n```"
1939
+ }
1940
+ ]
1941
+ },
1942
+ {
1943
+ "tag": "@returns",
1944
+ "content": [
1945
+ {
1946
+ "kind": "text",
1947
+ "text": "The decoded string."
1948
+ }
1949
+ ]
1950
+ },
1951
+ {
1952
+ "tag": "@throws",
1953
+ "content": [
1954
+ {
1955
+ "kind": "text",
1956
+ "text": "Error if the input contains invalid characters."
1957
+ }
1958
+ ]
1959
+ }
1960
+ ]
1961
+ },
1962
+ "sources": [
1963
+ {
1964
+ "fileName": "base58.ts",
1965
+ "line": 132,
1966
+ "character": 9,
1967
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L132"
1968
+ }
1969
+ ],
1970
+ "parameters": [
1971
+ {
1972
+ "id": 33,
1973
+ "name": "input",
1974
+ "variant": "param",
1975
+ "kind": 32768,
1976
+ "flags": {},
1977
+ "comment": {
1978
+ "summary": [
1979
+ {
1980
+ "kind": "text",
1981
+ "text": "The Base58 encoded string."
1982
+ }
1983
+ ]
1984
+ },
1985
+ "type": {
1986
+ "type": "intrinsic",
1987
+ "name": "string"
1988
+ }
1989
+ },
1990
+ {
1991
+ "id": 34,
1992
+ "name": "charset",
1993
+ "variant": "param",
1994
+ "kind": 32768,
1995
+ "flags": {},
1996
+ "comment": {
1997
+ "summary": [
1998
+ {
1999
+ "kind": "text",
2000
+ "text": "The charset variant to use (default: \"bitcoin\")."
2001
+ }
2002
+ ]
2003
+ },
2004
+ "type": {
2005
+ "type": "union",
2006
+ "types": [
2007
+ {
2008
+ "type": "literal",
2009
+ "value": "bitcoin"
2010
+ },
2011
+ {
2012
+ "type": "literal",
2013
+ "value": "flickr"
2014
+ },
2015
+ {
2016
+ "type": "literal",
2017
+ "value": "ripple"
2018
+ }
2019
+ ]
2020
+ },
2021
+ "defaultValue": "\"bitcoin\""
2022
+ }
2023
+ ],
2024
+ "type": {
2025
+ "type": "intrinsic",
2026
+ "name": "string"
2027
+ }
2028
+ }
2029
+ ]
2030
+ },
2031
+ {
2032
+ "id": 40,
2033
+ "name": "decode85",
2034
+ "variant": "declaration",
2035
+ "kind": 64,
2036
+ "flags": {},
2037
+ "sources": [
2038
+ {
2039
+ "fileName": "base85.ts",
2040
+ "line": 135,
2041
+ "character": 9,
2042
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L135"
2043
+ }
2044
+ ],
2045
+ "signatures": [
2046
+ {
2047
+ "id": 41,
2048
+ "name": "decode85",
2049
+ "variant": "signature",
2050
+ "kind": 4096,
2051
+ "flags": {},
2052
+ "comment": {
2053
+ "summary": [
2054
+ {
2055
+ "kind": "text",
2056
+ "text": "Decode a Base85 string."
2057
+ }
2058
+ ],
2059
+ "blockTags": [
2060
+ {
2061
+ "tag": "@example",
2062
+ "content": [
2063
+ {
2064
+ "kind": "code",
2065
+ "text": "```typescript\nimport { decode85 } from \"./base85.js\";\n\ndecode85(\"87cURDZ\");\n// => \"Hello\"\n\ndecode85(\"wrx.P\", \"z85\");\n// => \"test\"\n```"
2066
+ }
2067
+ ]
2068
+ },
2069
+ {
2070
+ "tag": "@returns",
2071
+ "content": [
2072
+ {
2073
+ "kind": "text",
2074
+ "text": "The decoded string."
2075
+ }
2076
+ ]
2077
+ },
2078
+ {
2079
+ "tag": "@throws",
2080
+ "content": [
2081
+ {
2082
+ "kind": "text",
2083
+ "text": "Error if the input contains invalid characters."
2084
+ }
2085
+ ]
2086
+ }
2087
+ ]
2088
+ },
2089
+ "sources": [
2090
+ {
2091
+ "fileName": "base85.ts",
2092
+ "line": 135,
2093
+ "character": 9,
2094
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L135"
2095
+ }
2096
+ ],
2097
+ "parameters": [
2098
+ {
2099
+ "id": 42,
2100
+ "name": "input",
2101
+ "variant": "param",
2102
+ "kind": 32768,
2103
+ "flags": {},
2104
+ "comment": {
2105
+ "summary": [
2106
+ {
2107
+ "kind": "text",
2108
+ "text": "The Base85 encoded string."
2109
+ }
2110
+ ]
2111
+ },
2112
+ "type": {
2113
+ "type": "intrinsic",
2114
+ "name": "string"
2115
+ }
2116
+ },
2117
+ {
2118
+ "id": 43,
2119
+ "name": "charset",
2120
+ "variant": "param",
2121
+ "kind": 32768,
2122
+ "flags": {},
2123
+ "comment": {
2124
+ "summary": [
2125
+ {
2126
+ "kind": "text",
2127
+ "text": "The charset variant to use (default: \"ascii85\")."
2128
+ }
2129
+ ]
2130
+ },
2131
+ "type": {
2132
+ "type": "union",
2133
+ "types": [
2134
+ {
2135
+ "type": "literal",
2136
+ "value": "ascii85"
2137
+ },
2138
+ {
2139
+ "type": "literal",
2140
+ "value": "z85"
2141
+ },
2142
+ {
2143
+ "type": "literal",
2144
+ "value": "rfc1924"
2145
+ }
2146
+ ]
2147
+ },
2148
+ "defaultValue": "\"ascii85\""
2149
+ }
2150
+ ],
2151
+ "type": {
2152
+ "type": "intrinsic",
2153
+ "name": "string"
2154
+ }
2155
+ }
2156
+ ]
2157
+ },
2158
+ {
2159
+ "id": 18,
2160
+ "name": "encode",
2161
+ "variant": "declaration",
2162
+ "kind": 64,
2163
+ "flags": {},
2164
+ "sources": [
2165
+ {
2166
+ "fileName": "base64.ts",
2167
+ "line": 79,
953
2168
  "character": 9,
954
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L19"
2169
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L79"
955
2170
  }
956
2171
  ],
957
2172
  "signatures": [
958
2173
  {
959
- "id": 9,
960
- "name": "createFindDirectories",
2174
+ "id": 19,
2175
+ "name": "encode",
961
2176
  "variant": "signature",
962
2177
  "kind": 4096,
963
2178
  "flags": {},
@@ -965,135 +2180,239 @@
965
2180
  "summary": [
966
2181
  {
967
2182
  "kind": "text",
968
- "text": "Factory that produces an async findDirectories function with\ninjected filesystem dependencies for full testability."
2183
+ "text": "Encode a string to Base64."
2184
+ }
2185
+ ],
2186
+ "blockTags": [
2187
+ {
2188
+ "tag": "@example",
2189
+ "content": [
2190
+ {
2191
+ "kind": "code",
2192
+ "text": "```typescript\nimport { encode } from \"./base64.js\";\n\nencode(\"Hello, World!\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n\nencode(\"Hello, World!\", \"urlsafe\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n```"
2193
+ }
2194
+ ]
2195
+ },
2196
+ {
2197
+ "tag": "@returns",
2198
+ "content": [
2199
+ {
2200
+ "kind": "text",
2201
+ "text": "The Base64 encoded string."
2202
+ }
2203
+ ]
969
2204
  }
970
2205
  ]
971
2206
  },
972
2207
  "sources": [
973
2208
  {
974
- "fileName": "find.ts",
975
- "line": 19,
2209
+ "fileName": "base64.ts",
2210
+ "line": 79,
976
2211
  "character": 9,
977
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L19"
2212
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base64.ts#L79"
978
2213
  }
979
2214
  ],
980
2215
  "parameters": [
981
2216
  {
982
- "id": 10,
983
- "name": "deps",
2217
+ "id": 20,
2218
+ "name": "input",
984
2219
  "variant": "param",
985
2220
  "kind": 32768,
986
2221
  "flags": {},
2222
+ "comment": {
2223
+ "summary": [
2224
+ {
2225
+ "kind": "text",
2226
+ "text": "The string to encode."
2227
+ }
2228
+ ]
2229
+ },
987
2230
  "type": {
988
- "type": "reference",
989
- "target": 40,
990
- "name": "FileSystemDependencies",
991
- "package": "@wtasnorg/node-lib"
2231
+ "type": "intrinsic",
2232
+ "name": "string"
992
2233
  }
2234
+ },
2235
+ {
2236
+ "id": 21,
2237
+ "name": "charset",
2238
+ "variant": "param",
2239
+ "kind": 32768,
2240
+ "flags": {},
2241
+ "comment": {
2242
+ "summary": [
2243
+ {
2244
+ "kind": "text",
2245
+ "text": "The charset variant to use (default: \"standard\")."
2246
+ }
2247
+ ]
2248
+ },
2249
+ "type": {
2250
+ "type": "union",
2251
+ "types": [
2252
+ {
2253
+ "type": "literal",
2254
+ "value": "standard"
2255
+ },
2256
+ {
2257
+ "type": "literal",
2258
+ "value": "urlsafe"
2259
+ },
2260
+ {
2261
+ "type": "literal",
2262
+ "value": "imap"
2263
+ },
2264
+ {
2265
+ "type": "literal",
2266
+ "value": "radix64"
2267
+ }
2268
+ ]
2269
+ },
2270
+ "defaultValue": "\"standard\""
993
2271
  }
994
2272
  ],
995
2273
  "type": {
996
- "type": "reflection",
997
- "declaration": {
998
- "id": 11,
999
- "name": "__type",
1000
- "variant": "declaration",
1001
- "kind": 65536,
2274
+ "type": "intrinsic",
2275
+ "name": "string"
2276
+ }
2277
+ }
2278
+ ]
2279
+ },
2280
+ {
2281
+ "id": 45,
2282
+ "name": "encode32",
2283
+ "variant": "declaration",
2284
+ "kind": 64,
2285
+ "flags": {},
2286
+ "sources": [
2287
+ {
2288
+ "fileName": "base32.ts",
2289
+ "line": 81,
2290
+ "character": 9,
2291
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L81"
2292
+ }
2293
+ ],
2294
+ "signatures": [
2295
+ {
2296
+ "id": 46,
2297
+ "name": "encode32",
2298
+ "variant": "signature",
2299
+ "kind": 4096,
2300
+ "flags": {},
2301
+ "comment": {
2302
+ "summary": [
2303
+ {
2304
+ "kind": "text",
2305
+ "text": "Encode a string to Base32."
2306
+ }
2307
+ ],
2308
+ "blockTags": [
2309
+ {
2310
+ "tag": "@example",
2311
+ "content": [
2312
+ {
2313
+ "kind": "code",
2314
+ "text": "```typescript\nimport { encode32 } from \"./base32.js\";\n\nencode32(\"Hello\");\n// => \"JBSWY3DP\"\n\nencode32(\"test\", \"hex\");\n// => \"EHMP6SS=\"\n```"
2315
+ }
2316
+ ]
2317
+ },
2318
+ {
2319
+ "tag": "@returns",
2320
+ "content": [
2321
+ {
2322
+ "kind": "text",
2323
+ "text": "The Base32 encoded string."
2324
+ }
2325
+ ]
2326
+ }
2327
+ ]
2328
+ },
2329
+ "sources": [
2330
+ {
2331
+ "fileName": "base32.ts",
2332
+ "line": 81,
2333
+ "character": 9,
2334
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base32.ts#L81"
2335
+ }
2336
+ ],
2337
+ "parameters": [
2338
+ {
2339
+ "id": 47,
2340
+ "name": "input",
2341
+ "variant": "param",
2342
+ "kind": 32768,
1002
2343
  "flags": {},
1003
- "sources": [
1004
- {
1005
- "fileName": "find.ts",
1006
- "line": 23,
1007
- "character": 26,
1008
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L23"
1009
- }
1010
- ],
1011
- "signatures": [
1012
- {
1013
- "id": 12,
1014
- "name": "__type",
1015
- "variant": "signature",
1016
- "kind": 4096,
1017
- "flags": {},
1018
- "sources": [
1019
- {
1020
- "fileName": "find.ts",
1021
- "line": 23,
1022
- "character": 26,
1023
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/find.ts#L23"
1024
- }
1025
- ],
1026
- "parameters": [
1027
- {
1028
- "id": 13,
1029
- "name": "root",
1030
- "variant": "param",
1031
- "kind": 32768,
1032
- "flags": {},
1033
- "type": {
1034
- "type": "intrinsic",
1035
- "name": "string"
1036
- }
1037
- },
1038
- {
1039
- "id": 14,
1040
- "name": "options",
1041
- "variant": "param",
1042
- "kind": 32768,
1043
- "flags": {},
1044
- "type": {
1045
- "type": "reference",
1046
- "target": 27,
1047
- "name": "FindDirectoriesOptions",
1048
- "package": "@wtasnorg/node-lib"
1049
- },
1050
- "defaultValue": "{}"
1051
- }
1052
- ],
1053
- "type": {
1054
- "type": "reference",
1055
- "target": {
1056
- "packageName": "typescript",
1057
- "packagePath": "lib/lib.es5.d.ts",
1058
- "qualifiedName": "Promise"
1059
- },
1060
- "typeArguments": [
1061
- {
1062
- "type": "array",
1063
- "elementType": {
1064
- "type": "intrinsic",
1065
- "name": "string"
1066
- }
1067
- }
1068
- ],
1069
- "name": "Promise",
1070
- "package": "typescript"
2344
+ "comment": {
2345
+ "summary": [
2346
+ {
2347
+ "kind": "text",
2348
+ "text": "The string to encode."
1071
2349
  }
1072
- }
1073
- ]
2350
+ ]
2351
+ },
2352
+ "type": {
2353
+ "type": "intrinsic",
2354
+ "name": "string"
2355
+ }
2356
+ },
2357
+ {
2358
+ "id": 48,
2359
+ "name": "charset",
2360
+ "variant": "param",
2361
+ "kind": 32768,
2362
+ "flags": {},
2363
+ "comment": {
2364
+ "summary": [
2365
+ {
2366
+ "kind": "text",
2367
+ "text": "The charset variant to use (default: \"rfc4648\")."
2368
+ }
2369
+ ]
2370
+ },
2371
+ "type": {
2372
+ "type": "union",
2373
+ "types": [
2374
+ {
2375
+ "type": "literal",
2376
+ "value": "rfc4648"
2377
+ },
2378
+ {
2379
+ "type": "literal",
2380
+ "value": "hex"
2381
+ },
2382
+ {
2383
+ "type": "literal",
2384
+ "value": "crockford"
2385
+ }
2386
+ ]
2387
+ },
2388
+ "defaultValue": "\"rfc4648\""
1074
2389
  }
2390
+ ],
2391
+ "type": {
2392
+ "type": "intrinsic",
2393
+ "name": "string"
1075
2394
  }
1076
2395
  }
1077
2396
  ]
1078
2397
  },
1079
2398
  {
1080
- "id": 22,
1081
- "name": "decode",
2399
+ "id": 27,
2400
+ "name": "encode58",
1082
2401
  "variant": "declaration",
1083
2402
  "kind": 64,
1084
2403
  "flags": {},
1085
2404
  "sources": [
1086
2405
  {
1087
- "fileName": "base64.ts",
1088
- "line": 119,
2406
+ "fileName": "base58.ts",
2407
+ "line": 72,
1089
2408
  "character": 9,
1090
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L119"
2409
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L72"
1091
2410
  }
1092
2411
  ],
1093
2412
  "signatures": [
1094
2413
  {
1095
- "id": 23,
1096
- "name": "decode",
2414
+ "id": 28,
2415
+ "name": "encode58",
1097
2416
  "variant": "signature",
1098
2417
  "kind": 4096,
1099
2418
  "flags": {},
@@ -1101,7 +2420,7 @@
1101
2420
  "summary": [
1102
2421
  {
1103
2422
  "kind": "text",
1104
- "text": "Decode a Base64 string."
2423
+ "text": "Encode a string to Base58."
1105
2424
  }
1106
2425
  ],
1107
2426
  "blockTags": [
@@ -1110,7 +2429,7 @@
1110
2429
  "content": [
1111
2430
  {
1112
2431
  "kind": "code",
1113
- "text": "```typescript\nimport { decode } from \"./base64.js\";\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\");\n// => \"Hello, World!\"\n\ndecode(\"SGVsbG8sIFdvcmxkIQ==\", \"standard\");\n// => \"Hello, World!\"\n```"
2432
+ "text": "```typescript\nimport { encode58 } from \"./base58.js\";\n\nencode58(\"Hello World\");\n// => \"JxF12TrwUP45BMd\"\n\nencode58(\"Hello World\", \"flickr\");\n// => \"jXf12sRWto45bmD\"\n```"
1114
2433
  }
1115
2434
  ]
1116
2435
  },
@@ -1119,16 +2438,7 @@
1119
2438
  "content": [
1120
2439
  {
1121
2440
  "kind": "text",
1122
- "text": "The decoded string."
1123
- }
1124
- ]
1125
- },
1126
- {
1127
- "tag": "@throws",
1128
- "content": [
1129
- {
1130
- "kind": "text",
1131
- "text": "Error if the input contains invalid characters."
2441
+ "text": "The Base58 encoded string."
1132
2442
  }
1133
2443
  ]
1134
2444
  }
@@ -1136,15 +2446,15 @@
1136
2446
  },
1137
2447
  "sources": [
1138
2448
  {
1139
- "fileName": "base64.ts",
1140
- "line": 119,
2449
+ "fileName": "base58.ts",
2450
+ "line": 72,
1141
2451
  "character": 9,
1142
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L119"
2452
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base58.ts#L72"
1143
2453
  }
1144
2454
  ],
1145
2455
  "parameters": [
1146
2456
  {
1147
- "id": 24,
2457
+ "id": 29,
1148
2458
  "name": "input",
1149
2459
  "variant": "param",
1150
2460
  "kind": 32768,
@@ -1153,7 +2463,7 @@
1153
2463
  "summary": [
1154
2464
  {
1155
2465
  "kind": "text",
1156
- "text": "The Base64 encoded string."
2466
+ "text": "The string to encode."
1157
2467
  }
1158
2468
  ]
1159
2469
  },
@@ -1163,7 +2473,7 @@
1163
2473
  }
1164
2474
  },
1165
2475
  {
1166
- "id": 25,
2476
+ "id": 30,
1167
2477
  "name": "charset",
1168
2478
  "variant": "param",
1169
2479
  "kind": 32768,
@@ -1172,7 +2482,7 @@
1172
2482
  "summary": [
1173
2483
  {
1174
2484
  "kind": "text",
1175
- "text": "The charset variant to use (default: \"standard\")."
2485
+ "text": "The charset variant to use (default: \"bitcoin\")."
1176
2486
  }
1177
2487
  ]
1178
2488
  },
@@ -1181,23 +2491,19 @@
1181
2491
  "types": [
1182
2492
  {
1183
2493
  "type": "literal",
1184
- "value": "standard"
1185
- },
1186
- {
1187
- "type": "literal",
1188
- "value": "urlsafe"
2494
+ "value": "bitcoin"
1189
2495
  },
1190
2496
  {
1191
2497
  "type": "literal",
1192
- "value": "imap"
2498
+ "value": "flickr"
1193
2499
  },
1194
2500
  {
1195
2501
  "type": "literal",
1196
- "value": "radix64"
2502
+ "value": "ripple"
1197
2503
  }
1198
2504
  ]
1199
2505
  },
1200
- "defaultValue": "\"standard\""
2506
+ "defaultValue": "\"bitcoin\""
1201
2507
  }
1202
2508
  ],
1203
2509
  "type": {
@@ -1208,23 +2514,23 @@
1208
2514
  ]
1209
2515
  },
1210
2516
  {
1211
- "id": 18,
1212
- "name": "encode",
2517
+ "id": 36,
2518
+ "name": "encode85",
1213
2519
  "variant": "declaration",
1214
2520
  "kind": 64,
1215
2521
  "flags": {},
1216
2522
  "sources": [
1217
2523
  {
1218
- "fileName": "base64.ts",
1219
- "line": 79,
2524
+ "fileName": "base85.ts",
2525
+ "line": 73,
1220
2526
  "character": 9,
1221
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L79"
2527
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L73"
1222
2528
  }
1223
2529
  ],
1224
2530
  "signatures": [
1225
2531
  {
1226
- "id": 19,
1227
- "name": "encode",
2532
+ "id": 37,
2533
+ "name": "encode85",
1228
2534
  "variant": "signature",
1229
2535
  "kind": 4096,
1230
2536
  "flags": {},
@@ -1232,7 +2538,7 @@
1232
2538
  "summary": [
1233
2539
  {
1234
2540
  "kind": "text",
1235
- "text": "Encode a string to Base64."
2541
+ "text": "Encode a string to Base85."
1236
2542
  }
1237
2543
  ],
1238
2544
  "blockTags": [
@@ -1241,7 +2547,7 @@
1241
2547
  "content": [
1242
2548
  {
1243
2549
  "kind": "code",
1244
- "text": "```typescript\nimport { encode } from \"./base64.js\";\n\nencode(\"Hello, World!\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n\nencode(\"Hello, World!\", \"urlsafe\");\n// => \"SGVsbG8sIFdvcmxkIQ==\"\n```"
2550
+ "text": "```typescript\nimport { encode85 } from \"./base85.js\";\n\nencode85(\"Hello\");\n// => \"87cURDZ\"\n\nencode85(\"test\", \"z85\");\n// => \"wrx.P\"\n```"
1245
2551
  }
1246
2552
  ]
1247
2553
  },
@@ -1250,7 +2556,7 @@
1250
2556
  "content": [
1251
2557
  {
1252
2558
  "kind": "text",
1253
- "text": "The Base64 encoded string."
2559
+ "text": "The Base85 encoded string."
1254
2560
  }
1255
2561
  ]
1256
2562
  }
@@ -1258,15 +2564,15 @@
1258
2564
  },
1259
2565
  "sources": [
1260
2566
  {
1261
- "fileName": "base64.ts",
1262
- "line": 79,
2567
+ "fileName": "base85.ts",
2568
+ "line": 73,
1263
2569
  "character": 9,
1264
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/base64.ts#L79"
2570
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/base85.ts#L73"
1265
2571
  }
1266
2572
  ],
1267
2573
  "parameters": [
1268
2574
  {
1269
- "id": 20,
2575
+ "id": 38,
1270
2576
  "name": "input",
1271
2577
  "variant": "param",
1272
2578
  "kind": 32768,
@@ -1285,7 +2591,7 @@
1285
2591
  }
1286
2592
  },
1287
2593
  {
1288
- "id": 21,
2594
+ "id": 39,
1289
2595
  "name": "charset",
1290
2596
  "variant": "param",
1291
2597
  "kind": 32768,
@@ -1294,7 +2600,7 @@
1294
2600
  "summary": [
1295
2601
  {
1296
2602
  "kind": "text",
1297
- "text": "The charset variant to use (default: \"standard\")."
2603
+ "text": "The charset variant to use (default: \"ascii85\")."
1298
2604
  }
1299
2605
  ]
1300
2606
  },
@@ -1303,23 +2609,19 @@
1303
2609
  "types": [
1304
2610
  {
1305
2611
  "type": "literal",
1306
- "value": "standard"
1307
- },
1308
- {
1309
- "type": "literal",
1310
- "value": "urlsafe"
2612
+ "value": "ascii85"
1311
2613
  },
1312
2614
  {
1313
2615
  "type": "literal",
1314
- "value": "imap"
2616
+ "value": "z85"
1315
2617
  },
1316
2618
  {
1317
2619
  "type": "literal",
1318
- "value": "radix64"
2620
+ "value": "rfc1924"
1319
2621
  }
1320
2622
  ]
1321
2623
  },
1322
- "defaultValue": "\"standard\""
2624
+ "defaultValue": "\"ascii85\""
1323
2625
  }
1324
2626
  ],
1325
2627
  "type": {
@@ -1340,7 +2642,7 @@
1340
2642
  "fileName": "hello.ts",
1341
2643
  "line": 31,
1342
2644
  "character": 15,
1343
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/hello.ts#L31"
2645
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/hello.ts#L31"
1344
2646
  }
1345
2647
  ],
1346
2648
  "signatures": [
@@ -1396,7 +2698,7 @@
1396
2698
  "fileName": "hello.ts",
1397
2699
  "line": 31,
1398
2700
  "character": 15,
1399
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/hello.ts#L31"
2701
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/hello.ts#L31"
1400
2702
  }
1401
2703
  ],
1402
2704
  "parameters": [
@@ -1459,7 +2761,7 @@
1459
2761
  "fileName": "user-agent.ts",
1460
2762
  "line": 48,
1461
2763
  "character": 16,
1462
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L48"
2764
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L48"
1463
2765
  }
1464
2766
  ],
1465
2767
  "signatures": [
@@ -1515,7 +2817,7 @@
1515
2817
  "fileName": "user-agent.ts",
1516
2818
  "line": 48,
1517
2819
  "character": 16,
1518
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/user-agent.ts#L48"
2820
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/user-agent.ts#L48"
1519
2821
  }
1520
2822
  ],
1521
2823
  "parameters": [
@@ -1541,7 +2843,7 @@
1541
2843
  ],
1542
2844
  "type": {
1543
2845
  "type": "reference",
1544
- "target": 59,
2846
+ "target": 102,
1545
2847
  "name": "UserAgentInfo",
1546
2848
  "package": "@wtasnorg/node-lib"
1547
2849
  }
@@ -1559,7 +2861,7 @@
1559
2861
  "fileName": "pojo.ts",
1560
2862
  "line": 10,
1561
2863
  "character": 9,
1562
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/pojo.ts#L10"
2864
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/pojo.ts#L10"
1563
2865
  }
1564
2866
  ],
1565
2867
  "signatures": [
@@ -1573,7 +2875,191 @@
1573
2875
  "summary": [
1574
2876
  {
1575
2877
  "kind": "text",
1576
- "text": "Convert a class instance into a plain JavaScript object.\nCopies only the instance's own enumerable data properties\nand excludes methods or prototype values."
2878
+ "text": "Convert a class instance into a plain JavaScript object.\nCopies only the instance's own enumerable data properties\nand excludes methods or prototype values."
2879
+ }
2880
+ ],
2881
+ "blockTags": [
2882
+ {
2883
+ "tag": "@returns",
2884
+ "content": [
2885
+ {
2886
+ "kind": "text",
2887
+ "text": "A plain JavaScript object containing only data fields."
2888
+ }
2889
+ ]
2890
+ }
2891
+ ]
2892
+ },
2893
+ "sources": [
2894
+ {
2895
+ "fileName": "pojo.ts",
2896
+ "line": 10,
2897
+ "character": 9,
2898
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/pojo.ts#L10"
2899
+ }
2900
+ ],
2901
+ "typeParameters": [
2902
+ {
2903
+ "id": 6,
2904
+ "name": "T",
2905
+ "variant": "typeParam",
2906
+ "kind": 131072,
2907
+ "flags": {},
2908
+ "type": {
2909
+ "type": "intrinsic",
2910
+ "name": "object"
2911
+ }
2912
+ }
2913
+ ],
2914
+ "parameters": [
2915
+ {
2916
+ "id": 7,
2917
+ "name": "instance",
2918
+ "variant": "param",
2919
+ "kind": 32768,
2920
+ "flags": {},
2921
+ "comment": {
2922
+ "summary": [
2923
+ {
2924
+ "kind": "text",
2925
+ "text": "A class instance to convert."
2926
+ }
2927
+ ]
2928
+ },
2929
+ "type": {
2930
+ "type": "reference",
2931
+ "target": 6,
2932
+ "name": "T",
2933
+ "package": "@wtasnorg/node-lib",
2934
+ "refersToTypeParameter": true
2935
+ }
2936
+ }
2937
+ ],
2938
+ "type": {
2939
+ "type": "reference",
2940
+ "target": {
2941
+ "packageName": "typescript",
2942
+ "packagePath": "lib/lib.es5.d.ts",
2943
+ "qualifiedName": "Record"
2944
+ },
2945
+ "typeArguments": [
2946
+ {
2947
+ "type": "intrinsic",
2948
+ "name": "string"
2949
+ },
2950
+ {
2951
+ "type": "intrinsic",
2952
+ "name": "unknown"
2953
+ }
2954
+ ],
2955
+ "name": "Record",
2956
+ "package": "typescript"
2957
+ }
2958
+ }
2959
+ ]
2960
+ },
2961
+ {
2962
+ "id": 54,
2963
+ "name": "popcount32",
2964
+ "variant": "declaration",
2965
+ "kind": 64,
2966
+ "flags": {},
2967
+ "sources": [
2968
+ {
2969
+ "fileName": "bits.ts",
2970
+ "line": 52,
2971
+ "character": 9,
2972
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L52"
2973
+ }
2974
+ ],
2975
+ "signatures": [
2976
+ {
2977
+ "id": 55,
2978
+ "name": "popcount32",
2979
+ "variant": "signature",
2980
+ "kind": 4096,
2981
+ "flags": {},
2982
+ "comment": {
2983
+ "summary": [
2984
+ {
2985
+ "kind": "text",
2986
+ "text": "Count set bits in an unsigned 32-bit representation of a number."
2987
+ }
2988
+ ],
2989
+ "blockTags": [
2990
+ {
2991
+ "tag": "@returns",
2992
+ "content": [
2993
+ {
2994
+ "kind": "text",
2995
+ "text": "Number of set bits (0-32)."
2996
+ }
2997
+ ]
2998
+ }
2999
+ ]
3000
+ },
3001
+ "sources": [
3002
+ {
3003
+ "fileName": "bits.ts",
3004
+ "line": 52,
3005
+ "character": 9,
3006
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L52"
3007
+ }
3008
+ ],
3009
+ "parameters": [
3010
+ {
3011
+ "id": 56,
3012
+ "name": "value",
3013
+ "variant": "param",
3014
+ "kind": 32768,
3015
+ "flags": {},
3016
+ "comment": {
3017
+ "summary": [
3018
+ {
3019
+ "kind": "text",
3020
+ "text": "Number interpreted as uint32."
3021
+ }
3022
+ ]
3023
+ },
3024
+ "type": {
3025
+ "type": "intrinsic",
3026
+ "name": "number"
3027
+ }
3028
+ }
3029
+ ],
3030
+ "type": {
3031
+ "type": "intrinsic",
3032
+ "name": "number"
3033
+ }
3034
+ }
3035
+ ]
3036
+ },
3037
+ {
3038
+ "id": 57,
3039
+ "name": "popcount64",
3040
+ "variant": "declaration",
3041
+ "kind": 64,
3042
+ "flags": {},
3043
+ "sources": [
3044
+ {
3045
+ "fileName": "bits.ts",
3046
+ "line": 69,
3047
+ "character": 9,
3048
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L69"
3049
+ }
3050
+ ],
3051
+ "signatures": [
3052
+ {
3053
+ "id": 58,
3054
+ "name": "popcount64",
3055
+ "variant": "signature",
3056
+ "kind": 4096,
3057
+ "flags": {},
3058
+ "comment": {
3059
+ "summary": [
3060
+ {
3061
+ "kind": "text",
3062
+ "text": "Count set bits in the low 64 bits of a number or bigint."
1577
3063
  }
1578
3064
  ],
1579
3065
  "blockTags": [
@@ -1582,7 +3068,24 @@
1582
3068
  "content": [
1583
3069
  {
1584
3070
  "kind": "text",
1585
- "text": "A plain JavaScript object containing only data fields."
3071
+ "text": "Number of set bits (0-64)."
3072
+ }
3073
+ ]
3074
+ },
3075
+ {
3076
+ "tag": "@throws",
3077
+ "content": [
3078
+ {
3079
+ "kind": "text",
3080
+ "text": "If "
3081
+ },
3082
+ {
3083
+ "kind": "code",
3084
+ "text": "`value`"
3085
+ },
3086
+ {
3087
+ "kind": "text",
3088
+ "text": " is negative or an unsafe integer."
1586
3089
  }
1587
3090
  ]
1588
3091
  }
@@ -1590,29 +3093,16 @@
1590
3093
  },
1591
3094
  "sources": [
1592
3095
  {
1593
- "fileName": "pojo.ts",
1594
- "line": 10,
3096
+ "fileName": "bits.ts",
3097
+ "line": 69,
1595
3098
  "character": 9,
1596
- "url": "https://github.com/wtasg/node-lib/blob/7baf8669b7042dca550ec8a4beb26526d3b538b4/src/pojo.ts#L10"
1597
- }
1598
- ],
1599
- "typeParameters": [
1600
- {
1601
- "id": 6,
1602
- "name": "T",
1603
- "variant": "typeParam",
1604
- "kind": 131072,
1605
- "flags": {},
1606
- "type": {
1607
- "type": "intrinsic",
1608
- "name": "object"
1609
- }
3099
+ "url": "https://github.com/wtasg/node-lib/blob/e8728afafd1c71a23332e0e226c750c68ec8ae80/src/bits.ts#L69"
1610
3100
  }
1611
3101
  ],
1612
3102
  "parameters": [
1613
3103
  {
1614
- "id": 7,
1615
- "name": "instance",
3104
+ "id": 59,
3105
+ "name": "value",
1616
3106
  "variant": "param",
1617
3107
  "kind": 32768,
1618
3108
  "flags": {},
@@ -1620,38 +3110,36 @@
1620
3110
  "summary": [
1621
3111
  {
1622
3112
  "kind": "text",
1623
- "text": "A class instance to convert."
3113
+ "text": "Input value. For "
3114
+ },
3115
+ {
3116
+ "kind": "code",
3117
+ "text": "`number`"
3118
+ },
3119
+ {
3120
+ "kind": "text",
3121
+ "text": ", it must be a non-negative safe integer."
1624
3122
  }
1625
3123
  ]
1626
3124
  },
1627
3125
  "type": {
1628
- "type": "reference",
1629
- "target": 6,
1630
- "name": "T",
1631
- "package": "@wtasnorg/node-lib",
1632
- "refersToTypeParameter": true
3126
+ "type": "union",
3127
+ "types": [
3128
+ {
3129
+ "type": "intrinsic",
3130
+ "name": "number"
3131
+ },
3132
+ {
3133
+ "type": "intrinsic",
3134
+ "name": "bigint"
3135
+ }
3136
+ ]
1633
3137
  }
1634
3138
  }
1635
3139
  ],
1636
3140
  "type": {
1637
- "type": "reference",
1638
- "target": {
1639
- "packageName": "typescript",
1640
- "packagePath": "lib/lib.es5.d.ts",
1641
- "qualifiedName": "Record"
1642
- },
1643
- "typeArguments": [
1644
- {
1645
- "type": "intrinsic",
1646
- "name": "string"
1647
- },
1648
- {
1649
- "type": "intrinsic",
1650
- "name": "unknown"
1651
- }
1652
- ],
1653
- "name": "Record",
1654
- "package": "typescript"
3141
+ "type": "intrinsic",
3142
+ "name": "number"
1655
3143
  }
1656
3144
  }
1657
3145
  ]
@@ -1661,32 +3149,49 @@
1661
3149
  {
1662
3150
  "title": "Interfaces",
1663
3151
  "children": [
1664
- 40,
1665
- 27,
1666
- 59
3152
+ 83,
3153
+ 70,
3154
+ 102
1667
3155
  ]
1668
3156
  },
1669
3157
  {
1670
3158
  "title": "Type Aliases",
1671
3159
  "children": [
1672
- 65
3160
+ 111,
3161
+ 109,
3162
+ 108,
3163
+ 110
1673
3164
  ]
1674
3165
  },
1675
3166
  {
1676
3167
  "title": "Variables",
1677
3168
  "children": [
1678
- 26
3169
+ 53,
3170
+ 35,
3171
+ 26,
3172
+ 44
1679
3173
  ]
1680
3174
  },
1681
3175
  {
1682
3176
  "title": "Functions",
1683
3177
  "children": [
3178
+ 60,
3179
+ 67,
3180
+ 63,
1684
3181
  8,
1685
3182
  22,
3183
+ 49,
3184
+ 31,
3185
+ 40,
1686
3186
  18,
3187
+ 45,
3188
+ 27,
3189
+ 36,
1687
3190
  1,
1688
3191
  15,
1689
- 4
3192
+ 4,
3193
+ 54,
3194
+ 57
1690
3195
  ]
1691
3196
  }
1692
3197
  ],
@@ -1828,199 +3333,429 @@
1828
3333
  "qualifiedName": "Base64Charset"
1829
3334
  },
1830
3335
  "27": {
3336
+ "packageName": "@wtasnorg/node-lib",
3337
+ "packagePath": "src/base58.ts",
3338
+ "qualifiedName": "encode58"
3339
+ },
3340
+ "28": {
3341
+ "packageName": "@wtasnorg/node-lib",
3342
+ "packagePath": "src/base58.ts",
3343
+ "qualifiedName": "encode58"
3344
+ },
3345
+ "29": {
3346
+ "packageName": "@wtasnorg/node-lib",
3347
+ "packagePath": "src/base58.ts",
3348
+ "qualifiedName": "input"
3349
+ },
3350
+ "30": {
3351
+ "packageName": "@wtasnorg/node-lib",
3352
+ "packagePath": "src/base58.ts",
3353
+ "qualifiedName": "charset"
3354
+ },
3355
+ "31": {
3356
+ "packageName": "@wtasnorg/node-lib",
3357
+ "packagePath": "src/base58.ts",
3358
+ "qualifiedName": "decode58"
3359
+ },
3360
+ "32": {
3361
+ "packageName": "@wtasnorg/node-lib",
3362
+ "packagePath": "src/base58.ts",
3363
+ "qualifiedName": "decode58"
3364
+ },
3365
+ "33": {
3366
+ "packageName": "@wtasnorg/node-lib",
3367
+ "packagePath": "src/base58.ts",
3368
+ "qualifiedName": "input"
3369
+ },
3370
+ "34": {
3371
+ "packageName": "@wtasnorg/node-lib",
3372
+ "packagePath": "src/base58.ts",
3373
+ "qualifiedName": "charset"
3374
+ },
3375
+ "35": {
3376
+ "packageName": "@wtasnorg/node-lib",
3377
+ "packagePath": "src/base58.ts",
3378
+ "qualifiedName": "Base58Charset"
3379
+ },
3380
+ "36": {
3381
+ "packageName": "@wtasnorg/node-lib",
3382
+ "packagePath": "src/base85.ts",
3383
+ "qualifiedName": "encode85"
3384
+ },
3385
+ "37": {
3386
+ "packageName": "@wtasnorg/node-lib",
3387
+ "packagePath": "src/base85.ts",
3388
+ "qualifiedName": "encode85"
3389
+ },
3390
+ "38": {
3391
+ "packageName": "@wtasnorg/node-lib",
3392
+ "packagePath": "src/base85.ts",
3393
+ "qualifiedName": "input"
3394
+ },
3395
+ "39": {
3396
+ "packageName": "@wtasnorg/node-lib",
3397
+ "packagePath": "src/base85.ts",
3398
+ "qualifiedName": "charset"
3399
+ },
3400
+ "40": {
3401
+ "packageName": "@wtasnorg/node-lib",
3402
+ "packagePath": "src/base85.ts",
3403
+ "qualifiedName": "decode85"
3404
+ },
3405
+ "41": {
3406
+ "packageName": "@wtasnorg/node-lib",
3407
+ "packagePath": "src/base85.ts",
3408
+ "qualifiedName": "decode85"
3409
+ },
3410
+ "42": {
3411
+ "packageName": "@wtasnorg/node-lib",
3412
+ "packagePath": "src/base85.ts",
3413
+ "qualifiedName": "input"
3414
+ },
3415
+ "43": {
3416
+ "packageName": "@wtasnorg/node-lib",
3417
+ "packagePath": "src/base85.ts",
3418
+ "qualifiedName": "charset"
3419
+ },
3420
+ "44": {
3421
+ "packageName": "@wtasnorg/node-lib",
3422
+ "packagePath": "src/base85.ts",
3423
+ "qualifiedName": "Base85Charset"
3424
+ },
3425
+ "45": {
3426
+ "packageName": "@wtasnorg/node-lib",
3427
+ "packagePath": "src/base32.ts",
3428
+ "qualifiedName": "encode32"
3429
+ },
3430
+ "46": {
3431
+ "packageName": "@wtasnorg/node-lib",
3432
+ "packagePath": "src/base32.ts",
3433
+ "qualifiedName": "encode32"
3434
+ },
3435
+ "47": {
3436
+ "packageName": "@wtasnorg/node-lib",
3437
+ "packagePath": "src/base32.ts",
3438
+ "qualifiedName": "input"
3439
+ },
3440
+ "48": {
3441
+ "packageName": "@wtasnorg/node-lib",
3442
+ "packagePath": "src/base32.ts",
3443
+ "qualifiedName": "charset"
3444
+ },
3445
+ "49": {
3446
+ "packageName": "@wtasnorg/node-lib",
3447
+ "packagePath": "src/base32.ts",
3448
+ "qualifiedName": "decode32"
3449
+ },
3450
+ "50": {
3451
+ "packageName": "@wtasnorg/node-lib",
3452
+ "packagePath": "src/base32.ts",
3453
+ "qualifiedName": "decode32"
3454
+ },
3455
+ "51": {
3456
+ "packageName": "@wtasnorg/node-lib",
3457
+ "packagePath": "src/base32.ts",
3458
+ "qualifiedName": "input"
3459
+ },
3460
+ "52": {
3461
+ "packageName": "@wtasnorg/node-lib",
3462
+ "packagePath": "src/base32.ts",
3463
+ "qualifiedName": "charset"
3464
+ },
3465
+ "53": {
3466
+ "packageName": "@wtasnorg/node-lib",
3467
+ "packagePath": "src/base32.ts",
3468
+ "qualifiedName": "Base32Charset"
3469
+ },
3470
+ "54": {
3471
+ "packageName": "@wtasnorg/node-lib",
3472
+ "packagePath": "src/bits.ts",
3473
+ "qualifiedName": "popcount32"
3474
+ },
3475
+ "55": {
3476
+ "packageName": "@wtasnorg/node-lib",
3477
+ "packagePath": "src/bits.ts",
3478
+ "qualifiedName": "popcount32"
3479
+ },
3480
+ "56": {
3481
+ "packageName": "@wtasnorg/node-lib",
3482
+ "packagePath": "src/bits.ts",
3483
+ "qualifiedName": "value"
3484
+ },
3485
+ "57": {
3486
+ "packageName": "@wtasnorg/node-lib",
3487
+ "packagePath": "src/bits.ts",
3488
+ "qualifiedName": "popcount64"
3489
+ },
3490
+ "58": {
3491
+ "packageName": "@wtasnorg/node-lib",
3492
+ "packagePath": "src/bits.ts",
3493
+ "qualifiedName": "popcount64"
3494
+ },
3495
+ "59": {
3496
+ "packageName": "@wtasnorg/node-lib",
3497
+ "packagePath": "src/bits.ts",
3498
+ "qualifiedName": "value"
3499
+ },
3500
+ "60": {
3501
+ "packageName": "@wtasnorg/node-lib",
3502
+ "packagePath": "src/bits.ts",
3503
+ "qualifiedName": "countOnes"
3504
+ },
3505
+ "61": {
3506
+ "packageName": "@wtasnorg/node-lib",
3507
+ "packagePath": "src/bits.ts",
3508
+ "qualifiedName": "countOnes"
3509
+ },
3510
+ "62": {
3511
+ "packageName": "@wtasnorg/node-lib",
3512
+ "packagePath": "src/bits.ts",
3513
+ "qualifiedName": "value"
3514
+ },
3515
+ "63": {
3516
+ "packageName": "@wtasnorg/node-lib",
3517
+ "packagePath": "src/bits.ts",
3518
+ "qualifiedName": "countZeroesWithWidth"
3519
+ },
3520
+ "64": {
3521
+ "packageName": "@wtasnorg/node-lib",
3522
+ "packagePath": "src/bits.ts",
3523
+ "qualifiedName": "countZeroesWithWidth"
3524
+ },
3525
+ "65": {
3526
+ "packageName": "@wtasnorg/node-lib",
3527
+ "packagePath": "src/bits.ts",
3528
+ "qualifiedName": "value"
3529
+ },
3530
+ "66": {
3531
+ "packageName": "@wtasnorg/node-lib",
3532
+ "packagePath": "src/bits.ts",
3533
+ "qualifiedName": "width"
3534
+ },
3535
+ "67": {
3536
+ "packageName": "@wtasnorg/node-lib",
3537
+ "packagePath": "src/bits.ts",
3538
+ "qualifiedName": "countZeroes"
3539
+ },
3540
+ "68": {
3541
+ "packageName": "@wtasnorg/node-lib",
3542
+ "packagePath": "src/bits.ts",
3543
+ "qualifiedName": "countZeroes"
3544
+ },
3545
+ "69": {
3546
+ "packageName": "@wtasnorg/node-lib",
3547
+ "packagePath": "src/bits.ts",
3548
+ "qualifiedName": "value"
3549
+ },
3550
+ "70": {
1831
3551
  "packageName": "@wtasnorg/node-lib",
1832
3552
  "packagePath": "src/find.ts",
1833
3553
  "qualifiedName": "FindDirectoriesOptions"
1834
3554
  },
1835
- "28": {
3555
+ "71": {
1836
3556
  "packageName": "@wtasnorg/node-lib",
1837
3557
  "packagePath": "src/find.ts",
1838
3558
  "qualifiedName": "FindDirectoriesOptions.maxDepth"
1839
3559
  },
1840
- "29": {
3560
+ "72": {
1841
3561
  "packageName": "@wtasnorg/node-lib",
1842
3562
  "packagePath": "src/find.ts",
1843
3563
  "qualifiedName": "FindDirectoriesOptions.followSymlinks"
1844
3564
  },
1845
- "30": {
3565
+ "73": {
1846
3566
  "packageName": "@wtasnorg/node-lib",
1847
3567
  "packagePath": "src/find.ts",
1848
3568
  "qualifiedName": "FindDirectoriesOptions.allowlist"
1849
3569
  },
1850
- "31": {
3570
+ "74": {
1851
3571
  "packageName": "@wtasnorg/node-lib",
1852
3572
  "packagePath": "src/find.ts",
1853
3573
  "qualifiedName": "__type"
1854
3574
  },
1855
- "32": {
3575
+ "75": {
1856
3576
  "packageName": "@wtasnorg/node-lib",
1857
3577
  "packagePath": "src/find.ts",
1858
3578
  "qualifiedName": "__type"
1859
3579
  },
1860
- "33": {
3580
+ "76": {
1861
3581
  "packageName": "@wtasnorg/node-lib",
1862
3582
  "packagePath": "src/find.ts",
1863
3583
  "qualifiedName": "_absPath"
1864
3584
  },
1865
- "34": {
3585
+ "77": {
1866
3586
  "packageName": "@wtasnorg/node-lib",
1867
3587
  "packagePath": "src/find.ts",
1868
3588
  "qualifiedName": "_name"
1869
3589
  },
1870
- "35": {
3590
+ "78": {
1871
3591
  "packageName": "@wtasnorg/node-lib",
1872
3592
  "packagePath": "src/find.ts",
1873
3593
  "qualifiedName": "FindDirectoriesOptions.blocklist"
1874
3594
  },
1875
- "36": {
3595
+ "79": {
1876
3596
  "packageName": "@wtasnorg/node-lib",
1877
3597
  "packagePath": "src/find.ts",
1878
3598
  "qualifiedName": "__type"
1879
3599
  },
1880
- "37": {
3600
+ "80": {
1881
3601
  "packageName": "@wtasnorg/node-lib",
1882
3602
  "packagePath": "src/find.ts",
1883
3603
  "qualifiedName": "__type"
1884
3604
  },
1885
- "38": {
3605
+ "81": {
1886
3606
  "packageName": "@wtasnorg/node-lib",
1887
3607
  "packagePath": "src/find.ts",
1888
3608
  "qualifiedName": "_absPath"
1889
3609
  },
1890
- "39": {
3610
+ "82": {
1891
3611
  "packageName": "@wtasnorg/node-lib",
1892
3612
  "packagePath": "src/find.ts",
1893
3613
  "qualifiedName": "_name"
1894
3614
  },
1895
- "40": {
3615
+ "83": {
1896
3616
  "packageName": "@wtasnorg/node-lib",
1897
3617
  "packagePath": "src/find.ts",
1898
3618
  "qualifiedName": "FileSystemDependencies"
1899
3619
  },
1900
- "41": {
3620
+ "84": {
1901
3621
  "packageName": "@wtasnorg/node-lib",
1902
3622
  "packagePath": "src/find.ts",
1903
3623
  "qualifiedName": "FileSystemDependencies.readdir"
1904
3624
  },
1905
- "42": {
3625
+ "85": {
1906
3626
  "packageName": "@wtasnorg/node-lib",
1907
3627
  "packagePath": "src/find.ts",
1908
3628
  "qualifiedName": "__type"
1909
3629
  },
1910
- "43": {
3630
+ "86": {
1911
3631
  "packageName": "@wtasnorg/node-lib",
1912
3632
  "packagePath": "src/find.ts",
1913
3633
  "qualifiedName": "__type"
1914
3634
  },
1915
- "44": {
3635
+ "87": {
1916
3636
  "packageName": "@wtasnorg/node-lib",
1917
3637
  "packagePath": "src/find.ts",
1918
3638
  "qualifiedName": "_path"
1919
3639
  },
1920
- "45": {
3640
+ "88": {
1921
3641
  "packageName": "@wtasnorg/node-lib",
1922
3642
  "packagePath": "src/find.ts",
1923
3643
  "qualifiedName": "_opts"
1924
3644
  },
1925
- "46": {
3645
+ "89": {
1926
3646
  "packageName": "@wtasnorg/node-lib",
1927
3647
  "packagePath": "src/find.ts",
1928
3648
  "qualifiedName": "__type"
1929
3649
  },
1930
- "47": {
3650
+ "90": {
1931
3651
  "packageName": "@wtasnorg/node-lib",
1932
3652
  "packagePath": "src/find.ts",
1933
3653
  "qualifiedName": "__type.withFileTypes"
1934
3654
  },
1935
- "48": {
3655
+ "91": {
1936
3656
  "packageName": "@wtasnorg/node-lib",
1937
3657
  "packagePath": "src/find.ts",
1938
3658
  "qualifiedName": "__type"
1939
3659
  },
1940
- "49": {
3660
+ "92": {
1941
3661
  "packageName": "@wtasnorg/node-lib",
1942
3662
  "packagePath": "src/find.ts",
1943
3663
  "qualifiedName": "__type.name"
1944
3664
  },
1945
- "50": {
3665
+ "93": {
1946
3666
  "packageName": "@wtasnorg/node-lib",
1947
3667
  "packagePath": "src/find.ts",
1948
3668
  "qualifiedName": "__type.isDirectory"
1949
3669
  },
1950
- "51": {
3670
+ "94": {
1951
3671
  "packageName": "@wtasnorg/node-lib",
1952
3672
  "packagePath": "src/find.ts",
1953
3673
  "qualifiedName": "__type.isDirectory"
1954
3674
  },
1955
- "52": {
3675
+ "95": {
1956
3676
  "packageName": "@wtasnorg/node-lib",
1957
3677
  "packagePath": "src/find.ts",
1958
3678
  "qualifiedName": "FileSystemDependencies.stat"
1959
3679
  },
1960
- "53": {
3680
+ "96": {
1961
3681
  "packageName": "@wtasnorg/node-lib",
1962
3682
  "packagePath": "src/find.ts",
1963
3683
  "qualifiedName": "__type"
1964
3684
  },
1965
- "54": {
3685
+ "97": {
1966
3686
  "packageName": "@wtasnorg/node-lib",
1967
3687
  "packagePath": "src/find.ts",
1968
3688
  "qualifiedName": "__type"
1969
3689
  },
1970
- "55": {
3690
+ "98": {
1971
3691
  "packageName": "@wtasnorg/node-lib",
1972
3692
  "packagePath": "src/find.ts",
1973
3693
  "qualifiedName": "_path"
1974
3694
  },
1975
- "56": {
3695
+ "99": {
1976
3696
  "packageName": "@wtasnorg/node-lib",
1977
3697
  "packagePath": "src/find.ts",
1978
3698
  "qualifiedName": "__type"
1979
3699
  },
1980
- "57": {
3700
+ "100": {
1981
3701
  "packageName": "@wtasnorg/node-lib",
1982
3702
  "packagePath": "src/find.ts",
1983
3703
  "qualifiedName": "__type.isDirectory"
1984
3704
  },
1985
- "58": {
3705
+ "101": {
1986
3706
  "packageName": "@wtasnorg/node-lib",
1987
3707
  "packagePath": "src/find.ts",
1988
3708
  "qualifiedName": "__type.isDirectory"
1989
3709
  },
1990
- "59": {
3710
+ "102": {
1991
3711
  "packageName": "@wtasnorg/node-lib",
1992
3712
  "packagePath": "src/user-agent.ts",
1993
3713
  "qualifiedName": "UserAgentInfo"
1994
3714
  },
1995
- "60": {
3715
+ "103": {
1996
3716
  "packageName": "@wtasnorg/node-lib",
1997
3717
  "packagePath": "src/user-agent.ts",
1998
3718
  "qualifiedName": "UserAgentInfo.browser"
1999
3719
  },
2000
- "61": {
3720
+ "104": {
2001
3721
  "packageName": "@wtasnorg/node-lib",
2002
3722
  "packagePath": "src/user-agent.ts",
2003
3723
  "qualifiedName": "UserAgentInfo.version"
2004
3724
  },
2005
- "62": {
3725
+ "105": {
2006
3726
  "packageName": "@wtasnorg/node-lib",
2007
3727
  "packagePath": "src/user-agent.ts",
2008
3728
  "qualifiedName": "UserAgentInfo.os"
2009
3729
  },
2010
- "63": {
3730
+ "106": {
2011
3731
  "packageName": "@wtasnorg/node-lib",
2012
3732
  "packagePath": "src/user-agent.ts",
2013
3733
  "qualifiedName": "UserAgentInfo.device"
2014
3734
  },
2015
- "64": {
3735
+ "107": {
2016
3736
  "packageName": "@wtasnorg/node-lib",
2017
3737
  "packagePath": "src/user-agent.ts",
2018
3738
  "qualifiedName": "UserAgentInfo.engine"
2019
3739
  },
2020
- "65": {
3740
+ "108": {
2021
3741
  "packageName": "@wtasnorg/node-lib",
2022
3742
  "packagePath": "src/base64.ts",
2023
3743
  "qualifiedName": "Base64CharsetType"
3744
+ },
3745
+ "109": {
3746
+ "packageName": "@wtasnorg/node-lib",
3747
+ "packagePath": "src/base58.ts",
3748
+ "qualifiedName": "Base58CharsetType"
3749
+ },
3750
+ "110": {
3751
+ "packageName": "@wtasnorg/node-lib",
3752
+ "packagePath": "src/base85.ts",
3753
+ "qualifiedName": "Base85CharsetType"
3754
+ },
3755
+ "111": {
3756
+ "packageName": "@wtasnorg/node-lib",
3757
+ "packagePath": "src/base32.ts",
3758
+ "qualifiedName": "Base32CharsetType"
2024
3759
  }
2025
3760
  },
2026
3761
  "files": {