w-data-html-minify 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/README.md +36 -0
  6. package/SECURITY.md +5 -0
  7. package/babel.config.js +15 -0
  8. package/dist/w-data-html-minify.umd.js +7 -0
  9. package/dist/w-data-html-minify.umd.js.map +1 -0
  10. package/docs/WDataHtmlMinify.mjs.html +134 -0
  11. package/docs/examples/ex-html-minify.html +94 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  18. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  19. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  29. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  30. package/docs/global.html +459 -0
  31. package/docs/htmlminifier.js.html +26278 -0
  32. package/docs/importHtmlminify.mjs.html +107 -0
  33. package/docs/index.html +84 -0
  34. package/docs/scripts/collapse.js +39 -0
  35. package/docs/scripts/commonNav.js +28 -0
  36. package/docs/scripts/linenumber.js +25 -0
  37. package/docs/scripts/nav.js +12 -0
  38. package/docs/scripts/polyfill.js +4 -0
  39. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  40. package/docs/scripts/prettify/lang-css.js +2 -0
  41. package/docs/scripts/prettify/prettify.js +28 -0
  42. package/docs/scripts/search.js +99 -0
  43. package/docs/styles/jsdoc.css +776 -0
  44. package/docs/styles/prettify.css +80 -0
  45. package/examples/ex-html-minify.html +94 -0
  46. package/g.test.minify.mjs +15 -0
  47. package/package.json +31 -0
  48. package/src/WDataHtmlMinify.mjs +62 -0
  49. package/src/_convertHtmlminifierCode.mjs +24 -0
  50. package/src/_htmlminifierCoreBrowser.mjs +1 -0
  51. package/src/_importHtmlminifierBrowser.mjs +46 -0
  52. package/src/_importHtmlminifierNode.mjs +7 -0
  53. package/src/htmlminifier.js +26206 -0
  54. package/src/htmlminifier.min.js +7 -0
  55. package/src/importHtmlminify.mjs +35 -0
  56. package/src/rq.js +3 -0
  57. package/test/all.test.mjs +20 -0
  58. package/toolg/addVersion.mjs +4 -0
  59. package/toolg/cleanFolder.mjs +4 -0
  60. package/toolg/gDistRollup.mjs +46 -0
  61. package/toolg/gDocsExams.mjs +48 -0
  62. package/toolg/modifyReadme.mjs +4 -0
@@ -0,0 +1,459 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Global - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WDataHtmlMinify">WDataHtmlMinify</a></li><li><a href="global.html#punycode">punycode</a></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">Global</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+ <dl class="details">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ </dl>
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ </div>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <h3 class="subsection-title">Members</h3>
125
+
126
+
127
+
128
+ <h4 class="name" id="punycode"><span class="type-signature"></span>punycode<span class="type-signature"> :Object</span></h4>
129
+
130
+
131
+
132
+
133
+
134
+ <dl class="details">
135
+
136
+ <dt class="tag-description">Description:</dt>
137
+ <dd class="tag-description"><ul class="dummy"><li><p>The <code>punycode</code> object.</p></li></ul></dd>
138
+
139
+
140
+
141
+ <dt class="tag-source">Source:</dt>
142
+ <dd class="tag-source"><ul class="dummy"><li>
143
+ <a href="htmlminifier.js.html">htmlminifier.js</a>, <a href="htmlminifier.js.html#line14883">line 14883</a>
144
+ </li></ul></dd>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ </dl>
177
+
178
+
179
+
180
+
181
+
182
+ <div class="description usertext">
183
+ <p>The <code>punycode</code> object.</p>
184
+ </div>
185
+
186
+
187
+
188
+ <h5 class="h5-types">Type:</h5>
189
+ <ul>
190
+ <li>
191
+
192
+ <span class="param-type">Object</span>
193
+
194
+
195
+
196
+ </li>
197
+ </ul>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <h3 class="subsection-title">Methods</h3>
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <h4 class="name" id="WDataHtmlMinify"><span class="type-signature"></span>WDataHtmlMinify<span class="signature">(h, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {String}</span></h4>
216
+
217
+
218
+
219
+
220
+
221
+
222
+ <dl class="details">
223
+
224
+ <dt class="tag-description">Description:</dt>
225
+ <dd class="tag-description"><ul class="dummy"><li><p>壓縮HTML</p></li></ul></dd>
226
+
227
+
228
+
229
+ <dt class="tag-source">Source:</dt>
230
+ <dd class="tag-source"><ul class="dummy"><li>
231
+ <a href="WDataHtmlMinify.mjs.html">WDataHtmlMinify.mjs</a>, <a href="WDataHtmlMinify.mjs.html#line26">line 26</a>
232
+ </li></ul></dd>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ </dl>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <h5 class="h5-examples">Example</h5>
277
+
278
+ <pre class="prettyprint"><code>let hin = `
279
  &lt;head>&lt;/head>
1
280
  &lt;body>abc&lt;/body>
281
+
282
+
283
+
284
+
285
+ <h5 class="h5-parameters">Parameters:</h5>
286
+
287
+
288
+ <table class="params">
289
+ <thead>
290
+ <tr>
291
+
292
+ <th>Name</th>
293
+
294
+
295
+ <th>Type</th>
296
+
297
+
298
+ <th>Attributes</th>
299
+
300
+
301
+
302
+ <th>Default</th>
303
+
304
+
305
+ <th class="last">Description</th>
306
+ </tr>
307
+ </thead>
308
+
309
+ <tbody>
310
+
311
+
312
+ <tr>
313
+
314
+ <td class="name"><code>h</code></td>
315
+
316
+
317
+ <td class="type">
318
+
319
+
320
+ <span class="param-type">String</span>
321
+
322
+
323
+
324
+
325
+ </td>
326
+
327
+
328
+ <td class="attributes">
329
+
330
+
331
+
332
+
333
+
334
+ </td>
335
+
336
+
337
+
338
+ <td class="default">
339
+
340
+ </td>
341
+
342
+
343
+ <td class="description last"><p>輸入HTML字串</p></td>
344
+ </tr>
345
+
346
+
347
+
348
+ <tr>
349
+
350
+ <td class="name"><code>opt</code></td>
351
+
352
+
353
+ <td class="type">
354
+
355
+
356
+ <span class="param-type">Object</span>
357
+
358
+
359
+
360
+
361
+ </td>
362
+
363
+
364
+ <td class="attributes">
365
+
366
+ &lt;optional><br>
367
+
368
+
369
+
370
+
371
+
372
+ </td>
373
+
374
+
375
+
376
+ <td class="default">
377
+
378
+ <code>{}</code>
379
+
380
+ </td>
381
+
382
+
383
+ <td class="description last"><p>輸入設定物件,預設{}</p></td>
384
+ </tr>
385
+
386
+
387
+ </tbody>
388
+ </table>
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+ <h5 class="h5-returns">Returns:</h5>
406
+
407
+
408
+ <div class="param-desc">
409
+ <p>回傳Promise,resolve回傳ltdt(各數據列為物件陣列),reject回傳錯誤訊息</p>
410
+ </div>
411
+
412
+
413
+
414
+ <dl class="param-type">
415
+ <dt>
416
+ Type
417
+ </dt>
418
+ <dd>
419
+
420
+ <span class="param-type">String</span>
421
+
422
+
423
+
424
+ </dd>
425
+ </dl>
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+ </article>
438
+
439
+ </section>
440
+
441
+
442
+
443
+
444
+
445
+
446
+ </div>
447
+
448
+ <br class="clear">
449
+
450
+ <footer>
451
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 16:51:38 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
452
+ </footer>
453
+
454
+ <script>prettyPrint();</script>
455
+ <script src="scripts/polyfill.js"></script>
456
+ <script src="scripts/linenumber.js"></script>
457
+
458
+
459
+
460
+ </body>
461
+ </html>