@bartificer/linkify 2.3.5 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/index.js +1 -1
  2. package/docs/LinkData.class.mjs.html +93 -5
  3. package/docs/LinkTemplate.class.mjs.html +93 -5
  4. package/docs/Linkifier.class.mjs.html +99 -11
  5. package/docs/PageData.class.mjs.html +93 -5
  6. package/docs/defaults.mjs.html +116 -12
  7. package/docs/docdash-overrides.css +5 -0
  8. package/docs/externals.jsdoc.html +91 -4
  9. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  27. package/docs/index.html +930 -7
  28. package/docs/index.js.html +139 -17
  29. package/docs/module-cheerio.html +189 -3
  30. package/docs/module-defaults.html +585 -3
  31. package/docs/module-link-data.LinkData.html +944 -0
  32. package/docs/module-link-data.html +222 -0
  33. package/docs/module-link-template.LinkTemplate.html +817 -0
  34. package/docs/module-link-template.html +222 -0
  35. package/docs/module-linkifier.Linkifier.html +2323 -0
  36. package/docs/module-linkifier.html +232 -0
  37. package/docs/module-linkify.html +806 -3
  38. package/docs/module-mustache.html +189 -3
  39. package/docs/module-node-fetch.html +189 -3
  40. package/docs/module-page-data.PageData.html +1788 -0
  41. package/docs/module-page-data.html +222 -0
  42. package/docs/module-title-case.html +189 -3
  43. package/docs/module-urijs.html +189 -3
  44. package/docs/module-url-slug.html +189 -3
  45. package/docs/module-utilities.html +1468 -3
  46. package/docs/scripts/collapse.js +39 -0
  47. package/docs/scripts/commonNav.js +28 -0
  48. package/docs/scripts/linenumber.js +25 -0
  49. package/docs/scripts/nav.js +12 -0
  50. package/docs/scripts/polyfill.js +4 -0
  51. package/docs/scripts/{third-party → prettify}/Apache-License-2.0.txt +202 -202
  52. package/docs/scripts/prettify/lang-css.js +2 -0
  53. package/docs/scripts/prettify/prettify.js +28 -0
  54. package/docs/scripts/search.js +99 -265
  55. package/docs/styles/jsdoc.css +776 -0
  56. package/docs/styles/prettify.css +80 -0
  57. package/docs/utilities.mjs.html +124 -5
  58. package/examples/clipboardURLToMarkdown.mjs +80 -1
  59. package/package.json +3 -2
  60. package/src/LinkData.class.mjs +2 -1
  61. package/src/LinkTemplate.class.mjs +2 -1
  62. package/src/Linkifier.class.mjs +8 -7
  63. package/src/PageData.class.mjs +2 -1
  64. package/src/defaults.mjs +26 -8
  65. package/src/index.js +48 -13
  66. package/src/utilities.mjs +33 -1
  67. package/docs/data/search.json +0 -1
  68. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  69. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  70. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  71. package/docs/module-LinkData.LinkData.html +0 -13
  72. package/docs/module-LinkData.html +0 -3
  73. package/docs/module-LinkTemplate.LinkTemplate.html +0 -3
  74. package/docs/module-LinkTemplate.html +0 -3
  75. package/docs/module-Linkifier.Linkifier.html +0 -3
  76. package/docs/module-Linkifier.html +0 -3
  77. package/docs/module-PageData.PageData.html +0 -15
  78. package/docs/module-PageData.html +0 -3
  79. package/docs/scripts/core.js +0 -726
  80. package/docs/scripts/core.min.js +0 -23
  81. package/docs/scripts/resize.js +0 -90
  82. package/docs/scripts/search.min.js +0 -6
  83. package/docs/scripts/third-party/fuse.js +0 -9
  84. package/docs/scripts/third-party/hljs-line-num-original.js +0 -369
  85. package/docs/scripts/third-party/hljs-line-num.js +0 -1
  86. package/docs/scripts/third-party/hljs-original.js +0 -5171
  87. package/docs/scripts/third-party/hljs.js +0 -1
  88. package/docs/scripts/third-party/popper.js +0 -5
  89. package/docs/scripts/third-party/tippy.js +0 -1
  90. package/docs/scripts/third-party/tocbot.js +0 -672
  91. package/docs/scripts/third-party/tocbot.min.js +0 -1
  92. package/docs/styles/clean-jsdoc-theme-base.css +0 -1159
  93. package/docs/styles/clean-jsdoc-theme-dark.css +0 -412
  94. package/docs/styles/clean-jsdoc-theme-light.css +0 -482
  95. package/docs/styles/clean-jsdoc-theme-scrollbar.css +0 -30
  96. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
  97. package/docs/styles/clean-jsdoc-theme.min.css +0 -1
@@ -0,0 +1,944 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>LinkData - @bartificer/linkify Documentation</title>
7
+
8
+ <meta name="description" content="Documentation for the @bartificer/linkify package" />
9
+
10
+ <meta name="keywords" content="documentation, linkify, link, template, javascript, generator, npm, module, package" />
11
+ <meta name="keyword" content="documentation, linkify, link, template, javascript, generator, npm, module, package" />
12
+
13
+
14
+
15
+ <meta property="og:title" content="@bartificer/linkify"/>
16
+ <meta property="og:type" content="website"/>
17
+ <meta property="og:image" content=""/>
18
+ <meta property="og:site_name" content="@bartificer/linkify Documentation"/>
19
+ <meta property="og:url" content="https://bartificer.github.io/linkify/"/>
20
+
21
+ <script src="scripts/prettify/prettify.js"></script>
22
+ <script src="scripts/prettify/lang-css.js"></script>
23
+ <!--[if lt IE 9]>
24
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
25
+ <![endif]-->
26
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
27
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
28
+ <script src="scripts/nav.js" defer></script>
29
+
30
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
31
+ </head>
32
+ <body>
33
+
34
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
35
+ <label for="nav-trigger" class="navicon-button x">
36
+ <div class="navicon"></div>
37
+ </label>
38
+
39
+ <label for="nav-trigger" class="overlay"></label>
40
+
41
+ <nav class="wrap">
42
+
43
+ <input type="text" id="nav-search" placeholder="Search" />
44
+
45
+
46
+ <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/bartificer/linkify" target="_blank" >On GitHub</a></h2><h2><a href="https://bartificer.net/" target="_blank" >Bartificer Creations</a></h2><h3>Modules</h3><ul><li><a href="module-defaults.html">defaults</a><ul class='members'><li data-type='member'><a href="module-defaults.html#.linkTemplates">linkTemplates</a></li><li data-type='member'><a href="module-defaults.html#.smallWords">smallWords</a></li><li data-type='member'><a href="module-defaults.html#.speciallyCapitalisedWords">speciallyCapitalisedWords</a></li></ul></li><li><a href="module-link-data.html">link-data</a></li><li><a href="module-link-template.html">link-template</a></li><li><a href="module-linkifier.html">linkifier</a></li><li><a href="module-linkify.html">linkify</a><ul class='members'><li data-type='member'><a href="module-linkify.html#.LinkData">LinkData</a></li><li data-type='member'><a href="module-linkify.html#.LinkTemplate">LinkTemplate</a></li><li data-type='member'><a href="module-linkify.html#.Linkifier">Linkifier</a></li><li data-type='member'><a href="module-linkify.html#.PageData">PageData</a></li><li data-type='member'><a href="module-linkify.html#.VERSION">VERSION</a></li><li data-type='member'><a href="module-linkify.html#.default">default</a></li><li data-type='member'><a href="module-linkify.html#.linkify">linkify</a></li></ul></li><li><a href="module-page-data.html">page-data</a></li><li><a href="module-utilities.html">utilities</a><ul class='methods'><li data-type='method'><a href="module-utilities.html#.batchFixCustomWordCases">batchFixCustomWordCases</a></li><li data-type='method'><a href="module-utilities.html#.escapeRegex">escapeRegex</a></li><li data-type='method'><a href="module-utilities.html#.extractSlug">extractSlug</a></li><li data-type='method'><a href="module-utilities.html#.regulariseWhitespace">regulariseWhitespace</a></li><li data-type='method'><a href="module-utilities.html#.stripQueryString">stripQueryString</a></li><li data-type='method'><a href="module-utilities.html#.stripUTMParameters">stripUTMParameters</a></li><li data-type='method'><a href="module-utilities.html#.toTitleCase">toTitleCase</a></li></ul></li></ul><h3>Classes</h3><ul><li><a href="module-link-data.LinkData.html">LinkData</a><ul class='methods'><li data-type='method'><a href="module-link-data.LinkData.html#asPlainObject">asPlainObject</a></li></ul></li><li><a href="module-link-template.LinkTemplate.html">LinkTemplate</a><ul class='methods'><li data-type='method'><a href="module-link-template.LinkTemplate.html#addFilter">addFilter</a></li><li data-type='method'><a href="module-link-template.LinkTemplate.html#filtersFor">filtersFor</a></li></ul></li><li><a href="module-linkifier.Linkifier.html">Linkifier</a><ul class='methods'><li data-type='method'><a href="module-linkifier.Linkifier.html#fetchPageData">fetchPageData</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#generateLink">generateLink</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTemplate">getTemplate</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTemplateNameForDomain">getTemplateNameForDomain</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTransformerForDomain">getTransformerForDomain</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerDefaultTemplateMapping">registerDefaultTemplateMapping</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerTemplate">registerTemplate</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerTransformer">registerTransformer</a></li></ul></li><li><a href="module-page-data.PageData.html">PageData</a><ul class='methods'><li data-type='method'><a href="module-page-data.PageData.html#addSecondaryHeading">addSecondaryHeading</a></li><li data-type='method'><a href="module-page-data.PageData.html#addTopLevelHeading">addTopLevelHeading</a></li><li data-type='method'><a href="module-page-data.PageData.html#asPlainObject">asPlainObject</a></li><li data-type='method'><a href="module-page-data.PageData.html#h1">h1</a></li><li data-type='method'><a href="module-page-data.PageData.html#h2">h2</a></li></ul></li></ul><h3>Externals</h3><ul><li><a href="module-cheerio.html">cheerio</a></li><li><a href="module-mustache.html">mustache</a></li><li><a href="module-node-fetch.html">node-fetch</a></li><li><a href="module-title-case.html">title-case</a></li><li><a href="module-urijs.html">urijs</a></li><li><a href="module-url-slug.html">url-slug</a></li></ul>
47
+
48
+ </nav>
49
+
50
+ <div id="main">
51
+
52
+ <h1 class="page-title">LinkData</h1>
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ <section>
61
+
62
+ <header>
63
+
64
+ <h2>
65
+ <span class="ancestors"><a href="module-link-data.html">link-data</a>.</span>
66
+
67
+
68
+ LinkData
69
+
70
+ </h2>
71
+
72
+ <div class="class-description usertext"><p>A class for representing the information about a link, in the abstract.</p></div>
73
+
74
+
75
+ </header>
76
+
77
+ <article>
78
+
79
+ <div class="container-overview">
80
+
81
+
82
+
83
+
84
+ <h2>Constructor</h2>
85
+
86
+
87
+ <h4 class="name" id="LinkData"><span class="type-signature"></span>new LinkData<span class="signature">(url, text<span class="signature-attributes">opt</span>, description<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <dl class="details">
95
+
96
+ <dt class="tag-description">Description:</dt>
97
+ <dd class="tag-description"><ul class="dummy"><li><p>This constructor throws a ValidationError unless a valid URL is passed.</p></li></ul></dd>
98
+
99
+
100
+
101
+ <dt class="tag-source">Source:</dt>
102
+ <dd class="tag-source"><ul class="dummy"><li>
103
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line17">line 17</a>
104
+ </li></ul></dd>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ </dl>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <h5 class="h5-parameters">Parameters:</h5>
151
+
152
+
153
+ <table class="params">
154
+ <thead>
155
+ <tr>
156
+
157
+ <th>Name</th>
158
+
159
+
160
+ <th>Type</th>
161
+
162
+
163
+ <th>Attributes</th>
164
+
165
+
166
+
167
+
168
+ <th class="last">Description</th>
169
+ </tr>
170
+ </thead>
171
+
172
+ <tbody>
173
+
174
+
175
+ <tr>
176
+
177
+ <td class="name"><code>url</code></td>
178
+
179
+
180
+ <td class="type">
181
+
182
+
183
+ <span class="param-type">URL</span>
184
+
185
+
186
+
187
+
188
+ </td>
189
+
190
+
191
+ <td class="attributes">
192
+
193
+
194
+
195
+
196
+
197
+ </td>
198
+
199
+
200
+
201
+
202
+ <td class="description last"><p>The link's URL.</p></td>
203
+ </tr>
204
+
205
+
206
+
207
+ <tr>
208
+
209
+ <td class="name"><code>text</code></td>
210
+
211
+
212
+ <td class="type">
213
+
214
+
215
+ <span class="param-type">string</span>
216
+
217
+
218
+
219
+
220
+ </td>
221
+
222
+
223
+ <td class="attributes">
224
+
225
+ &lt;optional><br>
226
+
227
+
228
+
229
+
230
+
231
+ </td>
232
+
233
+
234
+
235
+
236
+ <td class="description last"><p>The link's text, defaults to the URL.</p></td>
237
+ </tr>
238
+
239
+
240
+
241
+ <tr>
242
+
243
+ <td class="name"><code>description</code></td>
244
+
245
+
246
+ <td class="type">
247
+
248
+
249
+ <span class="param-type">string</span>
250
+
251
+
252
+
253
+
254
+ </td>
255
+
256
+
257
+ <td class="attributes">
258
+
259
+ &lt;optional><br>
260
+
261
+
262
+
263
+
264
+
265
+ </td>
266
+
267
+
268
+
269
+
270
+ <td class="description last"><p>A description for the link, defaults to
271
+ the link text.</p></td>
272
+ </tr>
273
+
274
+
275
+ </tbody>
276
+ </table>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+ <h5 class="h5-throws">Throws:</h5>
292
+
293
+
294
+
295
+ <dl>
296
+ <dt>
297
+ <div class="param-desc usertext">
298
+ <p>A validation error is thrown if an invalid URL
299
+ is passed.</p>
300
+ </div>
301
+ </dt>
302
+ <dd></dd>
303
+ <dt>
304
+ <dl class="param-type">
305
+ <dt>
306
+ Type
307
+ </dt>
308
+ <dd>
309
+
310
+ <span class="param-type">ValidationError</span>
311
+
312
+
313
+
314
+ </dd>
315
+ </dl>
316
+ </dt>
317
+ <dd></dd>
318
+ </dl>
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+ </div>
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+ <h3 class="subsection-title">Members</h3>
345
+
346
+
347
+
348
+ <h4 class="name" id="description"><span class="type-signature"></span>description<span class="type-signature"></span></h4>
349
+
350
+
351
+
352
+
353
+
354
+ <dl class="details">
355
+
356
+
357
+
358
+ <dt class="tag-source">Source:</dt>
359
+ <dd class="tag-source"><ul class="dummy"><li>
360
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line107">line 107</a>
361
+ </li></ul></dd>
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+ </dl>
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+ <h4 class="name" id="description"><span class="type-signature"></span>description<span class="type-signature"></span></h4>
409
+
410
+
411
+
412
+
413
+
414
+ <dl class="details">
415
+
416
+
417
+
418
+ <dt class="tag-source">Source:</dt>
419
+ <dd class="tag-source"><ul class="dummy"><li>
420
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line114">line 114</a>
421
+ </li></ul></dd>
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+ </dl>
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+ <h4 class="name" id="text"><span class="type-signature"></span>text<span class="type-signature"></span></h4>
469
+
470
+
471
+
472
+
473
+
474
+ <dl class="details">
475
+
476
+
477
+
478
+ <dt class="tag-source">Source:</dt>
479
+ <dd class="tag-source"><ul class="dummy"><li>
480
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line93">line 93</a>
481
+ </li></ul></dd>
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+ </dl>
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+ <h4 class="name" id="text"><span class="type-signature"></span>text<span class="type-signature"></span></h4>
529
+
530
+
531
+
532
+
533
+
534
+ <dl class="details">
535
+
536
+
537
+
538
+ <dt class="tag-source">Source:</dt>
539
+ <dd class="tag-source"><ul class="dummy"><li>
540
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line100">line 100</a>
541
+ </li></ul></dd>
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+ </dl>
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+ <h4 class="name" id="uri"><span class="type-signature"></span>uri<span class="type-signature"></span></h4>
589
+
590
+
591
+
592
+
593
+
594
+ <dl class="details">
595
+
596
+ <dt class="tag-description">Description:</dt>
597
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the URL as a URI.js object.</p></li></ul></dd>
598
+
599
+
600
+
601
+ <dt class="tag-source">Source:</dt>
602
+ <dd class="tag-source"><ul class="dummy"><li>
603
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line86">line 86</a>
604
+ </li></ul></dd>
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+ </dl>
637
+
638
+
639
+
640
+
641
+
642
+ <div class="description usertext">
643
+ <p>Get the URL as a URI.js object.</p>
644
+ </div>
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+ <h4 class="name" id="url"><span class="type-signature"></span>url<span class="type-signature"></span></h4>
656
+
657
+
658
+
659
+
660
+
661
+ <dl class="details">
662
+
663
+
664
+
665
+ <dt class="tag-source">Source:</dt>
666
+ <dd class="tag-source"><ul class="dummy"><li>
667
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line68">line 68</a>
668
+ </li></ul></dd>
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ </dl>
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+ <h4 class="name" id="url"><span class="type-signature"></span>url<span class="type-signature"></span></h4>
716
+
717
+
718
+
719
+
720
+
721
+ <dl class="details">
722
+
723
+ <dt class="tag-description">Description:</dt>
724
+ <dd class="tag-description"><ul class="dummy"><li><p>Get or set the URL.</p></li></ul></dd>
725
+
726
+
727
+
728
+ <dt class="tag-source">Source:</dt>
729
+ <dd class="tag-source"><ul class="dummy"><li>
730
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line77">line 77</a>
731
+ </li></ul></dd>
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+ </dl>
764
+
765
+
766
+
767
+
768
+
769
+ <div class="description usertext">
770
+ <p>Get or set the URL.</p>
771
+ </div>
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+ <h3 class="subsection-title">Methods</h3>
785
+
786
+
787
+
788
+
789
+
790
+
791
+ <h4 class="name" id="asPlainObject"><span class="type-signature"></span>asPlainObject<span class="signature">()</span><span class="type-signature"> &rarr; {plainObject}</span></h4>
792
+
793
+
794
+
795
+
796
+
797
+
798
+ <dl class="details">
799
+
800
+ <dt class="tag-description">Description:</dt>
801
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the link data as a plain object of the form:</p>
802
+ <pre class="prettyprint source"><code>{
803
+ url: 'http://www.bartificer.net/',
804
+ text: 'the link text',
805
+ description: 'the link description',
806
+ uri: {
807
+ hostname: 'www.bartificer.net',
808
+ path: '/',
809
+ hasPath: false
810
+ }
811
+ }
812
+ </code></pre>
813
+ <p>Note that the <code>uri</code> could contain more fields - it's initialised with
814
+ output from the <code>URI.parse()</code> function from the <code>URI</code> module.</p></li></ul></dd>
815
+
816
+
817
+
818
+ <dt class="tag-source">Source:</dt>
819
+ <dd class="tag-source"><ul class="dummy"><li>
820
+ <a href="LinkData.class.mjs.html">LinkData.class.mjs</a>, <a href="LinkData.class.mjs.html#line139">line 139</a>
821
+ </li></ul></dd>
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+ <dt class="tag-see">See:</dt>
852
+ <dd class="tag-see">
853
+ <ul>
854
+ <li><a href="https://medialize.github.io/URI.js/docs.html#static-parse">https://medialize.github.io/URI.js/docs.html#static-parse</a></li>
855
+ </ul>
856
+ </dd>
857
+
858
+
859
+
860
+ </dl>
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+ <h5 class="h5-returns">Returns:</h5>
889
+
890
+
891
+
892
+
893
+ <dl class="param-type">
894
+ <dt>
895
+ Type
896
+ </dt>
897
+ <dd>
898
+
899
+ <span class="param-type">plainObject</span>
900
+
901
+
902
+
903
+ </dd>
904
+ </dl>
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+ </article>
917
+
918
+ </section>
919
+
920
+
921
+
922
+
923
+
924
+
925
+ </div>
926
+
927
+ <br class="clear">
928
+
929
+ <footer>
930
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Apr 13 2026 16:45:07 GMT+0100 (Irish Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
931
+ </footer>
932
+
933
+ <script>prettyPrint();</script>
934
+ <script src="scripts/polyfill.js"></script>
935
+ <script src="scripts/linenumber.js"></script>
936
+
937
+ <script src="scripts/search.js" defer></script>
938
+
939
+
940
+
941
+ <link type="text/css" rel="stylesheet" href="./docdash-overrides.css">
942
+
943
+ </body>
944
+ </html>