w-dwdata-tweqod 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 (53) 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/LICENSE +21 -0
  6. package/README.md +24 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +16 -0
  9. package/dist/w-dwdata-tweqod.umd.js +8 -0
  10. package/dist/w-dwdata-tweqod.umd.js.map +1 -0
  11. package/docs/WDwdataTweqod.mjs.html +445 -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 +779 -0
  31. package/docs/index.html +84 -0
  32. package/docs/scripts/collapse.js +39 -0
  33. package/docs/scripts/commonNav.js +28 -0
  34. package/docs/scripts/linenumber.js +25 -0
  35. package/docs/scripts/nav.js +12 -0
  36. package/docs/scripts/polyfill.js +4 -0
  37. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  38. package/docs/scripts/prettify/lang-css.js +2 -0
  39. package/docs/scripts/prettify/prettify.js +28 -0
  40. package/docs/scripts/search.js +99 -0
  41. package/docs/styles/jsdoc.css +776 -0
  42. package/docs/styles/prettify.css +80 -0
  43. package/g.downloadEqs.mjs +21 -0
  44. package/g.mjs +60 -0
  45. package/package.json +33 -0
  46. package/script.txt +17 -0
  47. package/src/WDwdataTweqod.mjs +373 -0
  48. package/src/downloadEqs.mjs +168 -0
  49. package/test/WDwdataTweq.test.mjs +137 -0
  50. package/toolg/addVersion.mjs +4 -0
  51. package/toolg/cleanFolder.mjs +4 -0
  52. package/toolg/gDistRollup.mjs +26 -0
  53. package/toolg/modifyReadme.mjs +4 -0
@@ -0,0 +1,779 @@
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#WDwdataTweqod">WDwdataTweqod</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
+
125
+
126
+ <h3 class="subsection-title">Methods</h3>
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <h4 class="name" id="WDwdataTweqod"><span class="type-signature type-signature-async">(async) </span>WDwdataTweqod<span class="signature">(token, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <dl class="details">
141
+
142
+ <dt class="tag-description">Description:</dt>
143
+ <dd class="tag-description"><ul class="dummy"><li><p>於OpenData下載台灣氣象署地震資料</p></li></ul></dd>
144
+
145
+
146
+
147
+ <dt class="tag-source">Source:</dt>
148
+ <dd class="tag-source"><ul class="dummy"><li>
149
+ <a href="WDwdataTweqod.mjs.html">WDwdataTweqod.mjs</a>, <a href="WDwdataTweqod.mjs.html#line100">line 100</a>
150
+ </li></ul></dd>
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
+
177
+
178
+
179
+
180
+
181
+
182
+ </dl>
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <h5 class="h5-examples">Example</h5>
195
+
196
+ <pre class="prettyprint"><code>import fs from 'fs'
197
  fdDwStorage,
1
198
  fdDwAttime,
2
199
  fdDwCurrent,
3
200
  fdResult,
4
201
  // funDownload,
5
202
  // funGetCurrent,
6
203
  // funRemove,
7
204
  // funAdd,
8
205
  // funModify,
9
206
  .catch((err) => {
10
207
  console.log(err)
11
208
  })
12
209
  delete msg.type
13
210
  console.log('change', msg)
211
+
212
+
213
+
214
+
215
+ <h5 class="h5-parameters">Parameters:</h5>
216
+
217
+
218
+ <table class="params">
219
+ <thead>
220
+ <tr>
221
+
222
+ <th>Name</th>
223
+
224
+
225
+ <th>Type</th>
226
+
227
+
228
+ <th>Attributes</th>
229
+
230
+
231
+
232
+ <th>Default</th>
233
+
234
+
235
+ <th class="last">Description</th>
236
+ </tr>
237
+ </thead>
238
+
239
+ <tbody>
240
+
241
+
242
+ <tr>
243
+
244
+ <td class="name"><code>token</code></td>
245
+
246
+
247
+ <td class="type">
248
+
249
+
250
+ <span class="param-type">String</span>
251
+
252
+
253
+
254
+
255
+ </td>
256
+
257
+
258
+ <td class="attributes">
259
+
260
+
261
+
262
+
263
+
264
+ </td>
265
+
266
+
267
+
268
+ <td class="default">
269
+
270
+ </td>
271
+
272
+
273
+ <td class="description last"><p>輸入氣象署OpenData之API用token字串</p></td>
274
+ </tr>
275
+
276
+
277
+
278
+ <tr>
279
+
280
+ <td class="name"><code>opt</code></td>
281
+
282
+
283
+ <td class="type">
284
+
285
+
286
+ <span class="param-type">Object</span>
287
+
288
+
289
+
290
+
291
+ </td>
292
+
293
+
294
+ <td class="attributes">
295
+
296
+ &lt;optional><br>
297
+
298
+
299
+
300
+
301
+
302
+ </td>
303
+
304
+
305
+
306
+ <td class="default">
307
+
308
+ <code>{}</code>
309
+
310
+ </td>
311
+
312
+
313
+ <td class="description last"><p>輸入設定物件,預設{}</p>
314
+ <h6>Properties</h6>
315
+
316
+
317
+ <table class="params">
318
+ <thead>
319
+ <tr>
320
+
321
+ <th>Name</th>
322
+
323
+
324
+ <th>Type</th>
325
+
326
+
327
+ <th>Attributes</th>
328
+
329
+
330
+
331
+
332
+ <th class="last">Description</th>
333
+ </tr>
334
+ </thead>
335
+
336
+ <tbody>
337
+
338
+
339
+ <tr>
340
+
341
+ <td class="name"><code>fdDwStorage</code></td>
342
+
343
+
344
+ <td class="type">
345
+
346
+
347
+ <span class="param-type">String</span>
348
+
349
+
350
+
351
+
352
+ </td>
353
+
354
+
355
+ <td class="attributes">
356
+
357
+ &lt;optional><br>
358
+
359
+
360
+
361
+
362
+
363
+ </td>
364
+
365
+
366
+
367
+
368
+ <td class="description last"><p>輸入完整下載數據資料夾字串,預設'./_dwStorage'</p></td>
369
+ </tr>
370
+
371
+
372
+
373
+ <tr>
374
+
375
+ <td class="name"><code>fdDwAttime</code></td>
376
+
377
+
378
+ <td class="type">
379
+
380
+
381
+ <span class="param-type">String</span>
382
+
383
+
384
+
385
+
386
+ </td>
387
+
388
+
389
+ <td class="attributes">
390
+
391
+ &lt;optional><br>
392
+
393
+
394
+
395
+
396
+
397
+ </td>
398
+
399
+
400
+
401
+
402
+ <td class="description last"><p>輸入當前下載供比對hash用之數據資料夾字串,預設'./_dwAttime'</p></td>
403
+ </tr>
404
+
405
+
406
+
407
+ <tr>
408
+
409
+ <td class="name"><code>fdDwCurrent</code></td>
410
+
411
+
412
+ <td class="type">
413
+
414
+
415
+ <span class="param-type">String</span>
416
+
417
+
418
+
419
+
420
+ </td>
421
+
422
+
423
+ <td class="attributes">
424
+
425
+ &lt;optional><br>
426
+
427
+
428
+
429
+
430
+
431
+ </td>
432
+
433
+
434
+
435
+
436
+ <td class="description last"><p>輸入已下載供比對hash用之數據資料夾字串,預設'./_dwCurrent'</p></td>
437
+ </tr>
438
+
439
+
440
+
441
+ <tr>
442
+
443
+ <td class="name"><code>fdResult</code></td>
444
+
445
+
446
+ <td class="type">
447
+
448
+
449
+ <span class="param-type">String</span>
450
+
451
+
452
+
453
+
454
+ </td>
455
+
456
+
457
+ <td class="attributes">
458
+
459
+ &lt;optional><br>
460
+
461
+
462
+
463
+
464
+
465
+ </td>
466
+
467
+
468
+
469
+
470
+ <td class="description last"><p>輸入已下載數據所連動生成數據資料夾字串,預設'./_result'</p></td>
471
+ </tr>
472
+
473
+
474
+
475
+ <tr>
476
+
477
+ <td class="name"><code>fdTaskCpSrc</code></td>
478
+
479
+
480
+ <td class="type">
481
+
482
+
483
+ <span class="param-type">String</span>
484
+
485
+
486
+
487
+
488
+ </td>
489
+
490
+
491
+ <td class="attributes">
492
+
493
+ &lt;optional><br>
494
+
495
+
496
+
497
+
498
+
499
+ </td>
500
+
501
+
502
+
503
+
504
+ <td class="description last"><p>輸入任務狀態之來源端資料夾字串,預設'./_taskCpSrc'</p></td>
505
+ </tr>
506
+
507
+
508
+
509
+ <tr>
510
+
511
+ <td class="name"><code>funDownloadEqs</code></td>
512
+
513
+
514
+ <td class="type">
515
+
516
+
517
+ <span class="param-type">function</span>
518
+
519
+
520
+
521
+
522
+ </td>
523
+
524
+
525
+ <td class="attributes">
526
+
527
+ &lt;optional><br>
528
+
529
+
530
+
531
+
532
+
533
+ </td>
534
+
535
+
536
+
537
+
538
+ <td class="description last"><p>輸入自定義下載地震數據函數,回傳資料陣列</p></td>
539
+ </tr>
540
+
541
+
542
+
543
+ <tr>
544
+
545
+ <td class="name"><code>funDownload</code></td>
546
+
547
+
548
+ <td class="type">
549
+
550
+
551
+ <span class="param-type">function</span>
552
+
553
+
554
+
555
+
556
+ </td>
557
+
558
+
559
+ <td class="attributes">
560
+
561
+ &lt;optional><br>
562
+
563
+
564
+
565
+
566
+
567
+ </td>
568
+
569
+
570
+
571
+
572
+ <td class="description last"><p>輸入自定義當前下載之hash數據處理函數,回傳資料陣列</p></td>
573
+ </tr>
574
+
575
+
576
+
577
+ <tr>
578
+
579
+ <td class="name"><code>funGetCurrent</code></td>
580
+
581
+
582
+ <td class="type">
583
+
584
+
585
+ <span class="param-type">function</span>
586
+
587
+
588
+
589
+
590
+ </td>
591
+
592
+
593
+ <td class="attributes">
594
+
595
+ &lt;optional><br>
596
+
597
+
598
+
599
+
600
+
601
+ </td>
602
+
603
+
604
+
605
+
606
+ <td class="description last"><p>輸入自定義已下載之hash數據處理函數,回傳資料陣列</p></td>
607
+ </tr>
608
+
609
+
610
+
611
+ <tr>
612
+
613
+ <td class="name"><code>funAdd</code></td>
614
+
615
+
616
+ <td class="type">
617
+
618
+
619
+ <span class="param-type">function</span>
620
+
621
+
622
+
623
+
624
+ </td>
625
+
626
+
627
+ <td class="attributes">
628
+
629
+ &lt;optional><br>
630
+
631
+
632
+
633
+
634
+
635
+ </td>
636
+
637
+
638
+
639
+
640
+ <td class="description last"><p>輸入當有新資料時,需要連動處理之函數</p></td>
641
+ </tr>
642
+
643
+
644
+
645
+ <tr>
646
+
647
+ <td class="name"><code>funModify</code></td>
648
+
649
+
650
+ <td class="type">
651
+
652
+
653
+ <span class="param-type">function</span>
654
+
655
+
656
+
657
+
658
+ </td>
659
+
660
+
661
+ <td class="attributes">
662
+
663
+ &lt;optional><br>
664
+
665
+
666
+
667
+
668
+
669
+ </td>
670
+
671
+
672
+
673
+
674
+ <td class="description last"><p>輸入當有資料需更新時,需要連動處理之函數</p></td>
675
+ </tr>
676
+
677
+
678
+
679
+ <tr>
680
+
681
+ <td class="name"><code>funRemove</code></td>
682
+
683
+
684
+ <td class="type">
685
+
686
+
687
+ <span class="param-type">function</span>
688
+
689
+
690
+
691
+
692
+ </td>
693
+
694
+
695
+ <td class="attributes">
696
+
697
+ &lt;optional><br>
698
+
699
+
700
+
701
+
702
+
703
+ </td>
704
+
705
+
706
+
707
+
708
+ <td class="description last"><p>輸入當有資料需刪除時,需要連動處理之函數</p></td>
709
+ </tr>
710
+
711
+
712
+ </tbody>
713
+ </table>
714
+
715
+ </td>
716
+ </tr>
717
+
718
+
719
+ </tbody>
720
+ </table>
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+ <h5 class="h5-returns">Returns:</h5>
738
+
739
+
740
+ <div class="param-desc">
741
+ <p>回傳事件物件,可呼叫函數on監聽change事件</p>
742
+ </div>
743
+
744
+
745
+
746
+ <dl class="param-type">
747
+ <dt>
748
+ Type
749
+ </dt>
750
+ <dd>
751
+
752
+ <span class="param-type">Object</span>
753
+
754
+
755
+
756
+ </dd>
757
+ </dl>
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+ </article>
770
+
771
+ </section>
772
+
773
+
774
+
775
+
776
+
777
+
778
+ </div>
779
+
780
+ <br class="clear">
781
+
782
+ <footer>
783
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Sun Aug 24 2025 13:42:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
784
+ </footer>
785
+
786
+ <script>prettyPrint();</script>
787
+ <script src="scripts/polyfill.js"></script>
788
+ <script src="scripts/linenumber.js"></script>
789
+
790
+
791
+
792
+ </body>
793
+ </html>