convert-csv-to-json 4.14.0 → 4.16.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 (38) hide show
  1. package/.github/workflows/ci-cd.yml +1 -1
  2. package/docs/.nojekyll +0 -0
  3. package/docs/README.md +44 -0
  4. package/docs/demo.bundle.js +1708 -0
  5. package/docs/index.html +536 -0
  6. package/eslint.config.js +1 -1
  7. package/package.json +5 -1
  8. package/docs/api/BrowserApi.html +0 -2662
  9. package/docs/api/BrowserApiError.html +0 -669
  10. package/docs/api/ConfigurationError.html +0 -745
  11. package/docs/api/CsvFormatError.html +0 -677
  12. package/docs/api/CsvParsingError.html +0 -511
  13. package/docs/api/CsvToJson.html +0 -3367
  14. package/docs/api/CsvToJsonAsync.html +0 -2880
  15. package/docs/api/FileOperationError.html +0 -382
  16. package/docs/api/FileUtils.html +0 -1150
  17. package/docs/api/InputValidationError.html +0 -407
  18. package/docs/api/JsonUtil.html +0 -452
  19. package/docs/api/JsonValidationError.html +0 -357
  20. package/docs/api/StringUtils.html +0 -833
  21. package/docs/api/global.html +0 -3498
  22. package/docs/api/index.html +0 -414
  23. package/docs/api/index.js.html +0 -447
  24. package/docs/api/scripts/app.min.js +0 -1
  25. package/docs/api/scripts/linenumber.js +0 -26
  26. package/docs/api/scripts/search.js +0 -39
  27. package/docs/api/src_browserApi.js.html +0 -362
  28. package/docs/api/src_csvToJson.js.html +0 -696
  29. package/docs/api/src_csvToJsonAsync.js.html +0 -335
  30. package/docs/api/src_util_errors.js.html +0 -472
  31. package/docs/api/src_util_fileUtils.js.html +0 -238
  32. package/docs/api/src_util_jsonUtils.js.html +0 -166
  33. package/docs/api/src_util_stringUtils.js.html +0 -306
  34. package/docs/api/styles/app.min.css +0 -1
  35. package/docs/api/styles/iframe.css +0 -13
  36. package/docs/api/styles/prettify-jsdoc.css +0 -111
  37. package/docs/api/styles/prettify-tomorrow.css +0 -132
  38. package/docs/api/styles/reset.css +0 -44
@@ -1,3367 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
-
6
- <meta charset="utf-8">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <title> CsvToJson</title>
9
-
10
- <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
11
- <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
12
- <script src="./build/entry.js"></script>
13
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
14
- <!--[if lt IE 9]>
15
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16
- <![endif]-->
17
- <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
18
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
19
- <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
20
- <link type="text/css" rel="stylesheet" href="styles/app.min.css">
21
- <link type="text/css" rel="stylesheet" href="styles/iframe.css">
22
- <link type="text/css" rel="stylesheet" href="./node_modules/better-docs/css/better-docs.css">
23
- <script async defer src="https://buttons.github.io/buttons.js"></script>
24
-
25
-
26
- </head>
27
-
28
-
29
-
30
- <body class="layout small-header">
31
- <div id="stickyNavbarOverlay"></div>
32
-
33
-
34
- <div class="top-nav">
35
- <div class="inner">
36
- <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
37
- <span aria-hidden="true"></span>
38
- <span aria-hidden="true"></span>
39
- <span aria-hidden="true"></span>
40
- </a>
41
- <div class="logo">
42
-
43
- <a class="image" href="index.html">
44
- <img src="https://raw.githubusercontent.com/iuccio/CSVtoJSON/master/CSVtoJSON.png" alt="logo">
45
- </a>
46
-
47
-
48
- <a href="index.html">
49
- <h1 class="navbar-item">Convert CSV to JSON</h1>
50
- </a>
51
-
52
- </div>
53
- <div class="menu">
54
-
55
- <div class="navigation">
56
- <a
57
- href="index.html"
58
- class="link"
59
- >
60
- Documentation
61
- </a>
62
-
63
-
64
-
65
- <a
66
- class="link user-link "
67
- href="https://github.com/iuccio/CSVtoJSON"
68
- >
69
- GitHub
70
- </a>
71
-
72
- <a
73
- class="link user-link "
74
- href="https://www.npmjs.com/package/convert-csv-to-json"
75
- >
76
- NPM
77
- </a>
78
-
79
-
80
-
81
- </div>
82
- </div>
83
- </div>
84
- </div>
85
- <div id="main">
86
- <div
87
- class="sidebar "
88
- id="sidebarNav"
89
- >
90
-
91
- <nav>
92
-
93
- <h2><a href="index.html">Documentation</a></h2><div class="category"></div><div class="category"><h2>1-Core API</h2><h3>Global</h3><ul><li><a href="global.html#asciiEncoding">asciiEncoding</a></li><li><a href="global.html#base64Encoding">base64Encoding</a></li><li><a href="global.html#csvStringToJson">csvStringToJson</a></li><li><a href="global.html#csvStringToJsonStringified">csvStringToJsonStringified</a></li><li><a href="global.html#csvToJsonAsync">csvToJsonAsync</a></li><li><a href="global.html#customEncoding">customEncoding</a></li><li><a href="global.html#fieldDelimiter">fieldDelimiter</a></li><li><a href="global.html#formatValueByType">formatValueByType</a></li><li><a href="global.html#generateJsonFileFromCsv">generateJsonFileFromCsv</a></li><li><a href="global.html#getJsonFromCsv">getJsonFromCsv</a></li><li><a href="global.html#hexEncoding">hexEncoding</a></li><li><a href="global.html#indexHeader">indexHeader</a></li><li><a href="global.html#latin1Encoding">latin1Encoding</a></li><li><a href="global.html#mapRows">mapRows</a></li><li><a href="global.html#parseSubArray">parseSubArray</a></li><li><a href="global.html#supportQuotedField">supportQuotedField</a></li><li><a href="global.html#trimHeaderFieldWhiteSpace">trimHeaderFieldWhiteSpace</a></li><li><a href="global.html#ucs2Encoding">ucs2Encoding</a></li><li><a href="global.html#utf16leEncoding">utf16leEncoding</a></li><li><a href="global.html#utf8Encoding">utf8Encoding</a></li></ul></div><div class="category"><h2>2-Sync</h2><h3>Classes</h3><ul><li><a href="CsvToJson.html">CsvToJson</a></li></ul></div><div class="category"><h2>3-Async</h2><h3>Classes</h3><ul><li><a href="CsvToJsonAsync.html">CsvToJsonAsync</a></li></ul></div><div class="category"><h2>4-Browser</h2><h3>Classes</h3><ul><li><a href="BrowserApi.html">BrowserApi</a></li></ul></div><div class="category"><h2>Error Classes</h2><h3>Classes</h3><ul><li><a href="BrowserApiError.html">BrowserApiError</a></li><li><a href="ConfigurationError.html">ConfigurationError</a></li><li><a href="CsvFormatError.html">CsvFormatError</a></li><li><a href="CsvParsingError.html">CsvParsingError</a></li><li><a href="FileOperationError.html">FileOperationError</a></li><li><a href="InputValidationError.html">InputValidationError</a></li><li><a href="JsonValidationError.html">JsonValidationError</a></li></ul></div><div class="category"><h2>Utilities</h2><h3>Classes</h3><ul><li><a href="FileUtils.html">FileUtils</a></li><li><a href="JsonUtil.html">JsonUtil</a></li><li><a href="StringUtils.html">StringUtils</a></li></ul></div>
94
-
95
- </nav>
96
- </div>
97
- <div class="core" id="main-content-wrapper">
98
- <div class="content">
99
- <header class="page-title">
100
- <p>Class</p>
101
- <h1>CsvToJson</h1>
102
- </header>
103
-
104
-
105
-
106
-
107
-
108
- <section>
109
-
110
- <header>
111
-
112
- <h2><span class="attribs"><span class="type-signature"></span></span>CsvToJson<span class="signature">()</span><span class="type-signature"></span></h2>
113
-
114
- <div class="class-description"><p>Main CSV to JSON converter class
115
- Provides chainable API for configuring and converting CSV data</p></div>
116
-
117
-
118
- </header>
119
-
120
- <article>
121
- <div class="container-overview">
122
-
123
-
124
- <div class='vertical-section'>
125
- <div class="members">
126
- <div class="member">
127
- <div class=name>
128
- <span class="tag">Constructor</span>
129
- </div>
130
-
131
-
132
-
133
-
134
- <h4 class="name" id="CsvToJson">
135
- <a class="href-link" href="#CsvToJson">#</a>
136
-
137
- <span class="code-name">
138
-
139
- new CsvToJson<span class="signature">()</span><span class="type-signature"></span>
140
-
141
- </span>
142
- </h4>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
- <dl class="details">
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
- <p class="tag-source">
193
- <a href="src_csvToJson.js.html" class="button">View Source</a>
194
- <span>
195
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line24">line 24</a>
196
- </span>
197
- </p>
198
-
199
- </dl>
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
- </div>
223
- </div>
224
- </div>
225
-
226
-
227
- </div>
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
- <div class='vertical-section'>
245
- <h1>Methods</h1>
246
- <div class="members">
247
-
248
- <div class="member">
249
-
250
-
251
-
252
- <h4 class="name" id="csvStringToJson">
253
- <a class="href-link" href="#csvStringToJson">#</a>
254
-
255
- <span class="code-name">
256
-
257
- csvStringToJson<span class="signature">(csvString)</span><span class="type-signature"> &rarr; {Array.&lt;object>}</span>
258
-
259
- </span>
260
- </h4>
261
-
262
-
263
-
264
-
265
- <div class="description">
266
- <p>Parse CSV string content and return as JSON array of objects</p>
267
- </div>
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
- <h5>Parameters:</h5>
279
-
280
- <div class="table-container">
281
- <table class="params table">
282
- <thead>
283
- <tr>
284
-
285
- <th>Name</th>
286
-
287
-
288
- <th>Type</th>
289
-
290
-
291
-
292
-
293
-
294
- <th class="last">Description</th>
295
- </tr>
296
- </thead>
297
-
298
- <tbody>
299
-
300
-
301
-
302
- <tr class="deep-level-0">
303
-
304
- <td class="name"><code>csvString</code></td>
305
-
306
-
307
- <td class="type">
308
-
309
-
310
- <code class="param-type">string</code>
311
-
312
-
313
-
314
- </td>
315
-
316
-
317
-
318
-
319
-
320
- <td class="description last"><p>CSV content as string</p></td>
321
- </tr>
322
-
323
-
324
-
325
- </tbody>
326
- </table>
327
- </div>
328
-
329
-
330
-
331
-
332
-
333
- <dl class="details">
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
- <p class="tag-source">
366
- <a href="src_csvToJson.js.html" class="button">View Source</a>
367
- <span>
368
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line180">line 180</a>
369
- </span>
370
- </p>
371
-
372
- </dl>
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
- <div class='columns method-parameter'>
390
- <div class="column is-2"><label>Throws:</label></div>
391
- <div class="column is-10">
392
-
393
-
394
- <div class="columns">
395
-
396
- <div class='param-desc column is-7'><p>If CSV is malformed</p></div>
397
- <div class='column is-5 has-text-left'>
398
- <label>Type: </label>
399
- <code class="param-type"><a href="CsvFormatError.html">CsvFormatError</a></code>
400
-
401
-
402
- </div>
403
-
404
- </div>
405
-
406
-
407
- </div>
408
- </div>
409
-
410
-
411
-
412
- <div class='columns method-parameter'>
413
- <div class="column is-2"><label>Returns:</label></div>
414
- <div class="column is-10">
415
-
416
-
417
-
418
- <div class="columns">
419
-
420
- <div class='param-desc column is-7'><p>Array of objects representing CSV rows</p></div>
421
-
422
-
423
- <div class='column is-5 has-text-left'>
424
- <label>Type: </label>
425
-
426
- <code class="param-type">Array.&lt;object></code>
427
-
428
-
429
- </div>
430
-
431
- </div>
432
-
433
-
434
- </div>
435
- </div>
436
-
437
-
438
-
439
-
440
- <h5>Example</h5>
441
-
442
-
443
- <pre class="prettyprint"><code>const csvToJson = require('convert-csv-to-json');
444
- const rows = csvToJson.csvStringToJson('name,age\nAlice,30');
445
- console.log(rows); // [{ name: 'Alice', age: '30' }]</code></pre>
446
-
447
-
448
-
449
- </div>
450
-
451
- <div class="member">
452
-
453
-
454
-
455
- <h4 class="name" id="csvStringToJsonStringified">
456
- <a class="href-link" href="#csvStringToJsonStringified">#</a>
457
-
458
- <span class="code-name">
459
-
460
- csvStringToJsonStringified<span class="signature">(csvString)</span><span class="type-signature"> &rarr; {string}</span>
461
-
462
- </span>
463
- </h4>
464
-
465
-
466
-
467
-
468
- <div class="description">
469
- <p>Parse CSV string content and return as stringified JSON</p>
470
- </div>
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
- <h5>Parameters:</h5>
482
-
483
- <div class="table-container">
484
- <table class="params table">
485
- <thead>
486
- <tr>
487
-
488
- <th>Name</th>
489
-
490
-
491
- <th>Type</th>
492
-
493
-
494
-
495
-
496
-
497
- <th class="last">Description</th>
498
- </tr>
499
- </thead>
500
-
501
- <tbody>
502
-
503
-
504
-
505
- <tr class="deep-level-0">
506
-
507
- <td class="name"><code>csvString</code></td>
508
-
509
-
510
- <td class="type">
511
-
512
-
513
- <code class="param-type">string</code>
514
-
515
-
516
-
517
- </td>
518
-
519
-
520
-
521
-
522
-
523
- <td class="description last"><p>CSV content as string</p></td>
524
- </tr>
525
-
526
-
527
-
528
- </tbody>
529
- </table>
530
- </div>
531
-
532
-
533
-
534
-
535
-
536
- <dl class="details">
537
-
538
-
539
-
540
-
541
-
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
- <p class="tag-source">
569
- <a href="src_csvToJson.js.html" class="button">View Source</a>
570
- <span>
571
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line195">line 195</a>
572
- </span>
573
- </p>
574
-
575
- </dl>
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
- <div class='columns method-parameter'>
593
- <div class="column is-2"><label>Throws:</label></div>
594
- <div class="column is-10">
595
-
596
-
597
- <div class="columns">
598
-
599
- <div class='param-desc column is-7'><p>If CSV is malformed</p></div>
600
- <div class='column is-5 has-text-left'>
601
- <label>Type: </label>
602
- <code class="param-type"><a href="CsvFormatError.html">CsvFormatError</a></code>
603
-
604
-
605
- </div>
606
-
607
- </div>
608
-
609
-
610
-
611
- <div class="columns">
612
-
613
- <div class='param-desc column is-7'><p>If JSON generation fails</p></div>
614
- <div class='column is-5 has-text-left'>
615
- <label>Type: </label>
616
- <code class="param-type"><a href="JsonValidationError.html">JsonValidationError</a></code>
617
-
618
-
619
- </div>
620
-
621
- </div>
622
-
623
-
624
- </div>
625
- </div>
626
-
627
-
628
-
629
- <div class='columns method-parameter'>
630
- <div class="column is-2"><label>Returns:</label></div>
631
- <div class="column is-10">
632
-
633
-
634
-
635
- <div class="columns">
636
-
637
- <div class='param-desc column is-7'><p>JSON stringified array of objects</p></div>
638
-
639
-
640
- <div class='column is-5 has-text-left'>
641
- <label>Type: </label>
642
-
643
- <code class="param-type">string</code>
644
-
645
-
646
- </div>
647
-
648
- </div>
649
-
650
-
651
- </div>
652
- </div>
653
-
654
-
655
-
656
-
657
- <h5>Example</h5>
658
-
659
-
660
- <pre class="prettyprint"><code>const csvToJson = require('convert-csv-to-json');
661
- const jsonString = csvToJson.csvStringToJsonStringified('name,age\nAlice,30');
662
- console.log(jsonString);</code></pre>
663
-
664
-
665
-
666
- </div>
667
-
668
- <div class="member">
669
-
670
-
671
-
672
- <h4 class="name" id="encoding">
673
- <a class="href-link" href="#encoding">#</a>
674
-
675
- <span class="code-name">
676
-
677
- encoding<span class="signature">(encoding)</span><span class="type-signature"> &rarr; {this}</span>
678
-
679
- </span>
680
- </h4>
681
-
682
-
683
-
684
-
685
- <div class="description">
686
- <p>Set file encoding for reading CSV files</p>
687
- </div>
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
- <h5>Parameters:</h5>
699
-
700
- <div class="table-container">
701
- <table class="params table">
702
- <thead>
703
- <tr>
704
-
705
- <th>Name</th>
706
-
707
-
708
- <th>Type</th>
709
-
710
-
711
-
712
-
713
-
714
- <th class="last">Description</th>
715
- </tr>
716
- </thead>
717
-
718
- <tbody>
719
-
720
-
721
-
722
- <tr class="deep-level-0">
723
-
724
- <td class="name"><code>encoding</code></td>
725
-
726
-
727
- <td class="type">
728
-
729
-
730
- <code class="param-type">string</code>
731
-
732
-
733
-
734
- </td>
735
-
736
-
737
-
738
-
739
-
740
- <td class="description last"><p>Node.js supported encoding (e.g., 'utf8', 'latin1', 'ascii')</p></td>
741
- </tr>
742
-
743
-
744
-
745
- </tbody>
746
- </table>
747
- </div>
748
-
749
-
750
-
751
-
752
-
753
- <dl class="details">
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
- <p class="tag-source">
786
- <a href="src_csvToJson.js.html" class="button">View Source</a>
787
- <span>
788
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line105">line 105</a>
789
- </span>
790
- </p>
791
-
792
- </dl>
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
-
811
- <div class='columns method-parameter'>
812
- <div class="column is-2"><label>Returns:</label></div>
813
- <div class="column is-10">
814
-
815
-
816
-
817
- <div class="columns">
818
-
819
- <div class='param-desc column is-7'><p>For method chaining</p></div>
820
-
821
-
822
- <div class='column is-5 has-text-left'>
823
- <label>Type: </label>
824
-
825
- <code class="param-type">this</code>
826
-
827
-
828
- </div>
829
-
830
- </div>
831
-
832
-
833
- </div>
834
- </div>
835
-
836
-
837
-
838
-
839
- </div>
840
-
841
- <div class="member">
842
-
843
-
844
-
845
- <h4 class="name" id="fieldDelimiter">
846
- <a class="href-link" href="#fieldDelimiter">#</a>
847
-
848
- <span class="code-name">
849
-
850
- fieldDelimiter<span class="signature">(delimiter)</span><span class="type-signature"> &rarr; {this}</span>
851
-
852
- </span>
853
- </h4>
854
-
855
-
856
-
857
-
858
- <div class="description">
859
- <p>Set the field delimiter character</p>
860
- </div>
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
- <h5>Parameters:</h5>
872
-
873
- <div class="table-container">
874
- <table class="params table">
875
- <thead>
876
- <tr>
877
-
878
- <th>Name</th>
879
-
880
-
881
- <th>Type</th>
882
-
883
-
884
-
885
-
886
-
887
- <th class="last">Description</th>
888
- </tr>
889
- </thead>
890
-
891
- <tbody>
892
-
893
-
894
-
895
- <tr class="deep-level-0">
896
-
897
- <td class="name"><code>delimiter</code></td>
898
-
899
-
900
- <td class="type">
901
-
902
-
903
- <code class="param-type">string</code>
904
-
905
-
906
-
907
- </td>
908
-
909
-
910
-
911
-
912
-
913
- <td class="description last"><p>Character(s) to use as field separator (default: ',')</p></td>
914
- </tr>
915
-
916
-
917
-
918
- </tbody>
919
- </table>
920
- </div>
921
-
922
-
923
-
924
-
925
-
926
- <dl class="details">
927
-
928
-
929
-
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
- <p class="tag-source">
959
- <a href="src_csvToJson.js.html" class="button">View Source</a>
960
- <span>
961
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line53">line 53</a>
962
- </span>
963
- </p>
964
-
965
- </dl>
966
-
967
-
968
-
969
-
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
-
978
-
979
-
980
-
981
-
982
-
983
-
984
- <div class='columns method-parameter'>
985
- <div class="column is-2"><label>Returns:</label></div>
986
- <div class="column is-10">
987
-
988
-
989
-
990
- <div class="columns">
991
-
992
- <div class='param-desc column is-7'><p>For method chaining</p></div>
993
-
994
-
995
- <div class='column is-5 has-text-left'>
996
- <label>Type: </label>
997
-
998
- <code class="param-type">this</code>
999
-
1000
-
1001
- </div>
1002
-
1003
- </div>
1004
-
1005
-
1006
- </div>
1007
- </div>
1008
-
1009
-
1010
-
1011
-
1012
- </div>
1013
-
1014
- <div class="member">
1015
-
1016
-
1017
-
1018
- <h4 class="name" id="formatValueByType">
1019
- <a class="href-link" href="#formatValueByType">#</a>
1020
-
1021
- <span class="code-name">
1022
-
1023
- formatValueByType<span class="signature">(active)</span><span class="type-signature"> &rarr; {this}</span>
1024
-
1025
- </span>
1026
- </h4>
1027
-
1028
-
1029
-
1030
-
1031
- <div class="description">
1032
- <p>Enable or disable automatic type formatting for values
1033
- When enabled, numeric strings are converted to numbers, 'true'/'false' to booleans</p>
1034
- </div>
1035
-
1036
-
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
- <h5>Parameters:</h5>
1046
-
1047
- <div class="table-container">
1048
- <table class="params table">
1049
- <thead>
1050
- <tr>
1051
-
1052
- <th>Name</th>
1053
-
1054
-
1055
- <th>Type</th>
1056
-
1057
-
1058
-
1059
-
1060
-
1061
- <th class="last">Description</th>
1062
- </tr>
1063
- </thead>
1064
-
1065
- <tbody>
1066
-
1067
-
1068
-
1069
- <tr class="deep-level-0">
1070
-
1071
- <td class="name"><code>active</code></td>
1072
-
1073
-
1074
- <td class="type">
1075
-
1076
-
1077
- <code class="param-type">boolean</code>
1078
-
1079
-
1080
-
1081
- </td>
1082
-
1083
-
1084
-
1085
-
1086
-
1087
- <td class="description last"><p>Whether to format values by type</p></td>
1088
- </tr>
1089
-
1090
-
1091
-
1092
- </tbody>
1093
- </table>
1094
- </div>
1095
-
1096
-
1097
-
1098
-
1099
-
1100
- <dl class="details">
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
- <p class="tag-source">
1133
- <a href="src_csvToJson.js.html" class="button">View Source</a>
1134
- <span>
1135
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line32">line 32</a>
1136
- </span>
1137
- </p>
1138
-
1139
- </dl>
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
- <div class='columns method-parameter'>
1159
- <div class="column is-2"><label>Returns:</label></div>
1160
- <div class="column is-10">
1161
-
1162
-
1163
-
1164
- <div class="columns">
1165
-
1166
- <div class='param-desc column is-7'><p>For method chaining</p></div>
1167
-
1168
-
1169
- <div class='column is-5 has-text-left'>
1170
- <label>Type: </label>
1171
-
1172
- <code class="param-type">this</code>
1173
-
1174
-
1175
- </div>
1176
-
1177
- </div>
1178
-
1179
-
1180
- </div>
1181
- </div>
1182
-
1183
-
1184
-
1185
-
1186
- </div>
1187
-
1188
- <div class="member">
1189
-
1190
-
1191
-
1192
- <h4 class="name" id="generateJsonFileFromCsv">
1193
- <a class="href-link" href="#generateJsonFileFromCsv">#</a>
1194
-
1195
- <span class="code-name">
1196
-
1197
- generateJsonFileFromCsv<span class="signature">(fileInputName, fileOutputName)</span><span class="type-signature"></span>
1198
-
1199
- </span>
1200
- </h4>
1201
-
1202
-
1203
-
1204
-
1205
- <div class="description">
1206
- <p>Read a CSV file and write the parsed JSON to an output file</p>
1207
- </div>
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
- <h5>Parameters:</h5>
1219
-
1220
- <div class="table-container">
1221
- <table class="params table">
1222
- <thead>
1223
- <tr>
1224
-
1225
- <th>Name</th>
1226
-
1227
-
1228
- <th>Type</th>
1229
-
1230
-
1231
-
1232
-
1233
-
1234
- <th class="last">Description</th>
1235
- </tr>
1236
- </thead>
1237
-
1238
- <tbody>
1239
-
1240
-
1241
-
1242
- <tr class="deep-level-0">
1243
-
1244
- <td class="name"><code>fileInputName</code></td>
1245
-
1246
-
1247
- <td class="type">
1248
-
1249
-
1250
- <code class="param-type">string</code>
1251
-
1252
-
1253
-
1254
- </td>
1255
-
1256
-
1257
-
1258
-
1259
-
1260
- <td class="description last"><p>Path to input CSV file</p></td>
1261
- </tr>
1262
-
1263
-
1264
-
1265
-
1266
-
1267
- <tr class="deep-level-0">
1268
-
1269
- <td class="name"><code>fileOutputName</code></td>
1270
-
1271
-
1272
- <td class="type">
1273
-
1274
-
1275
- <code class="param-type">string</code>
1276
-
1277
-
1278
-
1279
- </td>
1280
-
1281
-
1282
-
1283
-
1284
-
1285
- <td class="description last"><p>Path to output JSON file</p></td>
1286
- </tr>
1287
-
1288
-
1289
-
1290
- </tbody>
1291
- </table>
1292
- </div>
1293
-
1294
-
1295
-
1296
-
1297
-
1298
- <dl class="details">
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
- <p class="tag-source">
1331
- <a href="src_csvToJson.js.html" class="button">View Source</a>
1332
- <span>
1333
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line130">line 130</a>
1334
- </span>
1335
- </p>
1336
-
1337
- </dl>
1338
-
1339
-
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
- <div class='columns method-parameter'>
1355
- <div class="column is-2"><label>Throws:</label></div>
1356
- <div class="column is-10">
1357
-
1358
-
1359
- <div class="columns">
1360
-
1361
- <div class='param-desc column is-7'><p>If file read or write fails</p></div>
1362
- <div class='column is-5 has-text-left'>
1363
- <label>Type: </label>
1364
- <code class="param-type"><a href="FileOperationError.html">FileOperationError</a></code>
1365
-
1366
-
1367
- </div>
1368
-
1369
- </div>
1370
-
1371
-
1372
-
1373
- <div class="columns">
1374
-
1375
- <div class='param-desc column is-7'><p>If CSV is malformed</p></div>
1376
- <div class='column is-5 has-text-left'>
1377
- <label>Type: </label>
1378
- <code class="param-type"><a href="CsvFormatError.html">CsvFormatError</a></code>
1379
-
1380
-
1381
- </div>
1382
-
1383
- </div>
1384
-
1385
-
1386
- </div>
1387
- </div>
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
- </div>
1395
-
1396
- <div class="member">
1397
-
1398
-
1399
-
1400
- <h4 class="name" id="getJsonFromCsv">
1401
- <a class="href-link" href="#getJsonFromCsv">#</a>
1402
-
1403
- <span class="code-name">
1404
-
1405
- getJsonFromCsv<span class="signature">(fileInputName)</span><span class="type-signature"> &rarr; {Array.&lt;object>}</span>
1406
-
1407
- </span>
1408
- </h4>
1409
-
1410
-
1411
-
1412
-
1413
- <div class="description">
1414
- <p>Read a CSV file and return parsed data as JSON array of objects</p>
1415
- </div>
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
- <h5>Parameters:</h5>
1427
-
1428
- <div class="table-container">
1429
- <table class="params table">
1430
- <thead>
1431
- <tr>
1432
-
1433
- <th>Name</th>
1434
-
1435
-
1436
- <th>Type</th>
1437
-
1438
-
1439
-
1440
-
1441
-
1442
- <th class="last">Description</th>
1443
- </tr>
1444
- </thead>
1445
-
1446
- <tbody>
1447
-
1448
-
1449
-
1450
- <tr class="deep-level-0">
1451
-
1452
- <td class="name"><code>fileInputName</code></td>
1453
-
1454
-
1455
- <td class="type">
1456
-
1457
-
1458
- <code class="param-type">string</code>
1459
-
1460
-
1461
-
1462
- </td>
1463
-
1464
-
1465
-
1466
-
1467
-
1468
- <td class="description last"><p>Path to input CSV file</p></td>
1469
- </tr>
1470
-
1471
-
1472
-
1473
- </tbody>
1474
- </table>
1475
- </div>
1476
-
1477
-
1478
-
1479
-
1480
-
1481
- <dl class="details">
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
- <p class="tag-source">
1514
- <a href="src_csvToJson.js.html" class="button">View Source</a>
1515
- <span>
1516
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line165">line 165</a>
1517
- </span>
1518
- </p>
1519
-
1520
- </dl>
1521
-
1522
-
1523
-
1524
-
1525
-
1526
-
1527
-
1528
-
1529
-
1530
-
1531
-
1532
-
1533
-
1534
-
1535
-
1536
-
1537
- <div class='columns method-parameter'>
1538
- <div class="column is-2"><label>Throws:</label></div>
1539
- <div class="column is-10">
1540
-
1541
-
1542
- <div class="columns">
1543
-
1544
- <div class='param-desc column is-7'><p>If file read fails</p></div>
1545
- <div class='column is-5 has-text-left'>
1546
- <label>Type: </label>
1547
- <code class="param-type"><a href="FileOperationError.html">FileOperationError</a></code>
1548
-
1549
-
1550
- </div>
1551
-
1552
- </div>
1553
-
1554
-
1555
-
1556
- <div class="columns">
1557
-
1558
- <div class='param-desc column is-7'><p>If CSV is malformed</p></div>
1559
- <div class='column is-5 has-text-left'>
1560
- <label>Type: </label>
1561
- <code class="param-type"><a href="CsvFormatError.html">CsvFormatError</a></code>
1562
-
1563
-
1564
- </div>
1565
-
1566
- </div>
1567
-
1568
-
1569
- </div>
1570
- </div>
1571
-
1572
-
1573
-
1574
- <div class='columns method-parameter'>
1575
- <div class="column is-2"><label>Returns:</label></div>
1576
- <div class="column is-10">
1577
-
1578
-
1579
-
1580
- <div class="columns">
1581
-
1582
- <div class='param-desc column is-7'><p>Array of objects representing CSV rows</p></div>
1583
-
1584
-
1585
- <div class='column is-5 has-text-left'>
1586
- <label>Type: </label>
1587
-
1588
- <code class="param-type">Array.&lt;object></code>
1589
-
1590
-
1591
- </div>
1592
-
1593
- </div>
1594
-
1595
-
1596
- </div>
1597
- </div>
1598
-
1599
-
1600
-
1601
-
1602
- <h5>Example</h5>
1603
-
1604
-
1605
- <pre class="prettyprint"><code>const csvToJson = require('convert-csv-to-json');
1606
- const rows = csvToJson.getJsonFromCsv('resource/input.csv');
1607
- console.log(rows);</code></pre>
1608
-
1609
-
1610
-
1611
- </div>
1612
-
1613
- <div class="member">
1614
-
1615
-
1616
-
1617
- <h4 class="name" id="getJsonFromCsvStringified">
1618
- <a class="href-link" href="#getJsonFromCsvStringified">#</a>
1619
-
1620
- <span class="code-name">
1621
-
1622
- getJsonFromCsvStringified<span class="signature">(fileInputName)</span><span class="type-signature"> &rarr; {string}</span>
1623
-
1624
- </span>
1625
- </h4>
1626
-
1627
-
1628
-
1629
-
1630
- <div class="description">
1631
- <p>Read a CSV file and return parsed data as stringified JSON</p>
1632
- </div>
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
-
1643
- <h5>Parameters:</h5>
1644
-
1645
- <div class="table-container">
1646
- <table class="params table">
1647
- <thead>
1648
- <tr>
1649
-
1650
- <th>Name</th>
1651
-
1652
-
1653
- <th>Type</th>
1654
-
1655
-
1656
-
1657
-
1658
-
1659
- <th class="last">Description</th>
1660
- </tr>
1661
- </thead>
1662
-
1663
- <tbody>
1664
-
1665
-
1666
-
1667
- <tr class="deep-level-0">
1668
-
1669
- <td class="name"><code>fileInputName</code></td>
1670
-
1671
-
1672
- <td class="type">
1673
-
1674
-
1675
- <code class="param-type">string</code>
1676
-
1677
-
1678
-
1679
- </td>
1680
-
1681
-
1682
-
1683
-
1684
-
1685
- <td class="description last"><p>Path to input CSV file</p></td>
1686
- </tr>
1687
-
1688
-
1689
-
1690
- </tbody>
1691
- </table>
1692
- </div>
1693
-
1694
-
1695
-
1696
-
1697
-
1698
- <dl class="details">
1699
-
1700
-
1701
-
1702
-
1703
-
1704
-
1705
-
1706
-
1707
-
1708
-
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
-
1723
-
1724
-
1725
-
1726
-
1727
-
1728
-
1729
-
1730
- <p class="tag-source">
1731
- <a href="src_csvToJson.js.html" class="button">View Source</a>
1732
- <span>
1733
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line147">line 147</a>
1734
- </span>
1735
- </p>
1736
-
1737
- </dl>
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
-
1745
-
1746
-
1747
-
1748
-
1749
-
1750
-
1751
-
1752
-
1753
-
1754
- <div class='columns method-parameter'>
1755
- <div class="column is-2"><label>Throws:</label></div>
1756
- <div class="column is-10">
1757
-
1758
-
1759
- <div class="columns">
1760
-
1761
- <div class='param-desc column is-7'><p>If file read fails</p></div>
1762
- <div class='column is-5 has-text-left'>
1763
- <label>Type: </label>
1764
- <code class="param-type"><a href="FileOperationError.html">FileOperationError</a></code>
1765
-
1766
-
1767
- </div>
1768
-
1769
- </div>
1770
-
1771
-
1772
-
1773
- <div class="columns">
1774
-
1775
- <div class='param-desc column is-7'><p>If CSV is malformed</p></div>
1776
- <div class='column is-5 has-text-left'>
1777
- <label>Type: </label>
1778
- <code class="param-type"><a href="CsvFormatError.html">CsvFormatError</a></code>
1779
-
1780
-
1781
- </div>
1782
-
1783
- </div>
1784
-
1785
-
1786
-
1787
- <div class="columns">
1788
-
1789
- <div class='param-desc column is-7'><p>If JSON generation fails</p></div>
1790
- <div class='column is-5 has-text-left'>
1791
- <label>Type: </label>
1792
- <code class="param-type"><a href="JsonValidationError.html">JsonValidationError</a></code>
1793
-
1794
-
1795
- </div>
1796
-
1797
- </div>
1798
-
1799
-
1800
- </div>
1801
- </div>
1802
-
1803
-
1804
-
1805
- <div class='columns method-parameter'>
1806
- <div class="column is-2"><label>Returns:</label></div>
1807
- <div class="column is-10">
1808
-
1809
-
1810
-
1811
- <div class="columns">
1812
-
1813
- <div class='param-desc column is-7'><p>JSON stringified array of objects</p></div>
1814
-
1815
-
1816
- <div class='column is-5 has-text-left'>
1817
- <label>Type: </label>
1818
-
1819
- <code class="param-type">string</code>
1820
-
1821
-
1822
- </div>
1823
-
1824
- </div>
1825
-
1826
-
1827
- </div>
1828
- </div>
1829
-
1830
-
1831
-
1832
-
1833
- <h5>Example</h5>
1834
-
1835
-
1836
- <pre class="prettyprint"><code>const csvToJson = require('convert-csv-to-json');
1837
- const jsonString = csvToJson.getJsonFromCsvStringified('resource/input.csv');
1838
- console.log(jsonString);</code></pre>
1839
-
1840
-
1841
-
1842
- </div>
1843
-
1844
- <div class="member">
1845
-
1846
-
1847
-
1848
- <h4 class="name" id="getLineEndingLength">
1849
- <a class="href-link" href="#getLineEndingLength">#</a>
1850
-
1851
- <span class="code-name">
1852
-
1853
- getLineEndingLength<span class="signature">(content, index)</span><span class="type-signature"> &rarr; {number}</span>
1854
-
1855
- </span>
1856
- </h4>
1857
-
1858
-
1859
-
1860
-
1861
- <div class="description">
1862
- <p>Get the length of line ending at current position (CRLF=2, LF=1, CR=1, or 0)</p>
1863
- </div>
1864
-
1865
-
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
-
1873
-
1874
- <h5>Parameters:</h5>
1875
-
1876
- <div class="table-container">
1877
- <table class="params table">
1878
- <thead>
1879
- <tr>
1880
-
1881
- <th>Name</th>
1882
-
1883
-
1884
- <th>Type</th>
1885
-
1886
-
1887
-
1888
-
1889
-
1890
- <th class="last">Description</th>
1891
- </tr>
1892
- </thead>
1893
-
1894
- <tbody>
1895
-
1896
-
1897
-
1898
- <tr class="deep-level-0">
1899
-
1900
- <td class="name"><code>content</code></td>
1901
-
1902
-
1903
- <td class="type">
1904
-
1905
-
1906
- <code class="param-type">string</code>
1907
-
1908
-
1909
-
1910
- </td>
1911
-
1912
-
1913
-
1914
-
1915
-
1916
- <td class="description last"><p>CSV content</p></td>
1917
- </tr>
1918
-
1919
-
1920
-
1921
-
1922
-
1923
- <tr class="deep-level-0">
1924
-
1925
- <td class="name"><code>index</code></td>
1926
-
1927
-
1928
- <td class="type">
1929
-
1930
-
1931
- <code class="param-type">number</code>
1932
-
1933
-
1934
-
1935
- </td>
1936
-
1937
-
1938
-
1939
-
1940
-
1941
- <td class="description last"><p>Current index to check</p></td>
1942
- </tr>
1943
-
1944
-
1945
-
1946
- </tbody>
1947
- </table>
1948
- </div>
1949
-
1950
-
1951
-
1952
-
1953
-
1954
- <dl class="details">
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
- <p class="tag-source">
1987
- <a href="src_csvToJson.js.html" class="button">View Source</a>
1988
- <span>
1989
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line330">line 330</a>
1990
- </span>
1991
- </p>
1992
-
1993
- </dl>
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
- <div class='columns method-parameter'>
2013
- <div class="column is-2"><label>Returns:</label></div>
2014
- <div class="column is-10">
2015
-
2016
-
2017
-
2018
- <div class="columns">
2019
-
2020
- <div class='param-desc column is-7'><p>Length of line ending (0 if none)</p></div>
2021
-
2022
-
2023
- <div class='column is-5 has-text-left'>
2024
- <label>Type: </label>
2025
-
2026
- <code class="param-type">number</code>
2027
-
2028
-
2029
- </div>
2030
-
2031
- </div>
2032
-
2033
-
2034
- </div>
2035
- </div>
2036
-
2037
-
2038
-
2039
-
2040
- </div>
2041
-
2042
- <div class="member">
2043
-
2044
-
2045
-
2046
- <h4 class="name" id="indexHeader">
2047
- <a class="href-link" href="#indexHeader">#</a>
2048
-
2049
- <span class="code-name">
2050
-
2051
- indexHeader<span class="signature">(indexHeaderValue)</span><span class="type-signature"> &rarr; {this}</span>
2052
-
2053
- </span>
2054
- </h4>
2055
-
2056
-
2057
-
2058
-
2059
- <div class="description">
2060
- <p>Set the row index where CSV headers are located</p>
2061
- </div>
2062
-
2063
-
2064
-
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
- <h5>Parameters:</h5>
2073
-
2074
- <div class="table-container">
2075
- <table class="params table">
2076
- <thead>
2077
- <tr>
2078
-
2079
- <th>Name</th>
2080
-
2081
-
2082
- <th>Type</th>
2083
-
2084
-
2085
-
2086
-
2087
-
2088
- <th class="last">Description</th>
2089
- </tr>
2090
- </thead>
2091
-
2092
- <tbody>
2093
-
2094
-
2095
-
2096
- <tr class="deep-level-0">
2097
-
2098
- <td class="name"><code>indexHeaderValue</code></td>
2099
-
2100
-
2101
- <td class="type">
2102
-
2103
-
2104
- <code class="param-type">number</code>
2105
-
2106
-
2107
-
2108
- </td>
2109
-
2110
-
2111
-
2112
-
2113
-
2114
- <td class="description last"><p>Zero-based row index containing headers</p></td>
2115
- </tr>
2116
-
2117
-
2118
-
2119
- </tbody>
2120
- </table>
2121
- </div>
2122
-
2123
-
2124
-
2125
-
2126
-
2127
- <dl class="details">
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
-
2157
-
2158
-
2159
- <p class="tag-source">
2160
- <a href="src_csvToJson.js.html" class="button">View Source</a>
2161
- <span>
2162
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line74">line 74</a>
2163
- </span>
2164
- </p>
2165
-
2166
- </dl>
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
- <div class='columns method-parameter'>
2184
- <div class="column is-2"><label>Throws:</label></div>
2185
- <div class="column is-10">
2186
-
2187
-
2188
- <div class="columns">
2189
-
2190
- <div class='param-desc column is-7'><p>If not a valid number</p></div>
2191
- <div class='column is-5 has-text-left'>
2192
- <label>Type: </label>
2193
- <code class="param-type"><a href="ConfigurationError.html">ConfigurationError</a></code>
2194
-
2195
-
2196
- </div>
2197
-
2198
- </div>
2199
-
2200
-
2201
- </div>
2202
- </div>
2203
-
2204
-
2205
-
2206
- <div class='columns method-parameter'>
2207
- <div class="column is-2"><label>Returns:</label></div>
2208
- <div class="column is-10">
2209
-
2210
-
2211
-
2212
- <div class="columns">
2213
-
2214
- <div class='param-desc column is-7'><p>For method chaining</p></div>
2215
-
2216
-
2217
- <div class='column is-5 has-text-left'>
2218
- <label>Type: </label>
2219
-
2220
- <code class="param-type">this</code>
2221
-
2222
-
2223
- </div>
2224
-
2225
- </div>
2226
-
2227
-
2228
- </div>
2229
- </div>
2230
-
2231
-
2232
-
2233
-
2234
- </div>
2235
-
2236
- <div class="member">
2237
-
2238
-
2239
-
2240
- <h4 class="name" id="mapRows">
2241
- <a class="href-link" href="#mapRows">#</a>
2242
-
2243
- <span class="code-name">
2244
-
2245
- mapRows<span class="signature">(mapperFn)</span><span class="type-signature"> &rarr; {this}</span>
2246
-
2247
- </span>
2248
- </h4>
2249
-
2250
-
2251
-
2252
-
2253
- <div class="description">
2254
- <p>Sets a mapper function to transform each row after conversion</p>
2255
- </div>
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
- <h5>Parameters:</h5>
2267
-
2268
- <div class="table-container">
2269
- <table class="params table">
2270
- <thead>
2271
- <tr>
2272
-
2273
- <th>Name</th>
2274
-
2275
-
2276
- <th>Type</th>
2277
-
2278
-
2279
-
2280
-
2281
-
2282
- <th class="last">Description</th>
2283
- </tr>
2284
- </thead>
2285
-
2286
- <tbody>
2287
-
2288
-
2289
-
2290
- <tr class="deep-level-0">
2291
-
2292
- <td class="name"><code>mapperFn</code></td>
2293
-
2294
-
2295
- <td class="type">
2296
-
2297
-
2298
- <code class="param-type">function</code>
2299
-
2300
-
2301
-
2302
- </td>
2303
-
2304
-
2305
-
2306
-
2307
-
2308
- <td class="description last"><p>Function that receives (row, index) and returns transformed row or null to filter out</p></td>
2309
- </tr>
2310
-
2311
-
2312
-
2313
- </tbody>
2314
- </table>
2315
- </div>
2316
-
2317
-
2318
-
2319
-
2320
-
2321
- <dl class="details">
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
- <p class="tag-source">
2354
- <a href="src_csvToJson.js.html" class="button">View Source</a>
2355
- <span>
2356
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line115">line 115</a>
2357
- </span>
2358
- </p>
2359
-
2360
- </dl>
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
-
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
- <div class='columns method-parameter'>
2380
- <div class="column is-2"><label>Returns:</label></div>
2381
- <div class="column is-10">
2382
-
2383
-
2384
-
2385
- <div class="columns">
2386
-
2387
- <div class='param-desc column is-7'><p>For method chaining</p></div>
2388
-
2389
-
2390
- <div class='column is-5 has-text-left'>
2391
- <label>Type: </label>
2392
-
2393
- <code class="param-type">this</code>
2394
-
2395
-
2396
- </div>
2397
-
2398
- </div>
2399
-
2400
-
2401
- </div>
2402
- </div>
2403
-
2404
-
2405
-
2406
-
2407
- </div>
2408
-
2409
- <div class="member">
2410
-
2411
-
2412
-
2413
- <h4 class="name" id="parseRecords">
2414
- <a class="href-link" href="#parseRecords">#</a>
2415
-
2416
- <span class="code-name">
2417
-
2418
- parseRecords<span class="signature">(csvContent)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span>
2419
-
2420
- </span>
2421
- </h4>
2422
-
2423
-
2424
-
2425
-
2426
- <div class="description">
2427
- <p>Parse CSV content into individual records, respecting quoted fields that may span multiple lines.
2428
- RFC 4180 compliant parsing - handles quoted fields that may contain newlines.</p>
2429
- </div>
2430
-
2431
-
2432
-
2433
-
2434
-
2435
-
2436
-
2437
-
2438
-
2439
-
2440
- <h5>Parameters:</h5>
2441
-
2442
- <div class="table-container">
2443
- <table class="params table">
2444
- <thead>
2445
- <tr>
2446
-
2447
- <th>Name</th>
2448
-
2449
-
2450
- <th>Type</th>
2451
-
2452
-
2453
-
2454
-
2455
-
2456
- <th class="last">Description</th>
2457
- </tr>
2458
- </thead>
2459
-
2460
- <tbody>
2461
-
2462
-
2463
-
2464
- <tr class="deep-level-0">
2465
-
2466
- <td class="name"><code>csvContent</code></td>
2467
-
2468
-
2469
- <td class="type">
2470
-
2471
-
2472
- <code class="param-type">string</code>
2473
-
2474
-
2475
-
2476
- </td>
2477
-
2478
-
2479
-
2480
-
2481
-
2482
- <td class="description last"><p>The raw CSV content</p></td>
2483
- </tr>
2484
-
2485
-
2486
-
2487
- </tbody>
2488
- </table>
2489
- </div>
2490
-
2491
-
2492
-
2493
-
2494
-
2495
- <dl class="details">
2496
-
2497
-
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
-
2505
-
2506
-
2507
-
2508
-
2509
-
2510
-
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
- <p class="tag-source">
2528
- <a href="src_csvToJson.js.html" class="button">View Source</a>
2529
- <span>
2530
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line271">line 271</a>
2531
- </span>
2532
- </p>
2533
-
2534
- </dl>
2535
-
2536
-
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
-
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
- <div class='columns method-parameter'>
2554
- <div class="column is-2"><label>Returns:</label></div>
2555
- <div class="column is-10">
2556
-
2557
-
2558
-
2559
- <div class="columns">
2560
-
2561
- <div class='param-desc column is-7'><p>Array of record strings</p></div>
2562
-
2563
-
2564
- <div class='column is-5 has-text-left'>
2565
- <label>Type: </label>
2566
-
2567
- <code class="param-type">Array.&lt;string></code>
2568
-
2569
-
2570
- </div>
2571
-
2572
- </div>
2573
-
2574
-
2575
- </div>
2576
- </div>
2577
-
2578
-
2579
-
2580
-
2581
- </div>
2582
-
2583
- <div class="member">
2584
-
2585
-
2586
-
2587
- <h4 class="name" id="parseSubArray">
2588
- <a class="href-link" href="#parseSubArray">#</a>
2589
-
2590
- <span class="code-name">
2591
-
2592
- parseSubArray<span class="signature">(delimiter, separator)</span><span class="type-signature"> &rarr; {this}</span>
2593
-
2594
- </span>
2595
- </h4>
2596
-
2597
-
2598
-
2599
-
2600
- <div class="description">
2601
- <p>Configure sub-array parsing for special field values
2602
- Fields bracketed by delimiter and containing separator are parsed into arrays</p>
2603
- </div>
2604
-
2605
-
2606
-
2607
-
2608
-
2609
-
2610
-
2611
-
2612
-
2613
-
2614
- <h5>Parameters:</h5>
2615
-
2616
- <div class="table-container">
2617
- <table class="params table">
2618
- <thead>
2619
- <tr>
2620
-
2621
- <th>Name</th>
2622
-
2623
-
2624
- <th>Type</th>
2625
-
2626
-
2627
-
2628
-
2629
- <th>Default</th>
2630
-
2631
-
2632
- <th class="last">Description</th>
2633
- </tr>
2634
- </thead>
2635
-
2636
- <tbody>
2637
-
2638
-
2639
-
2640
- <tr class="deep-level-0">
2641
-
2642
- <td class="name"><code>delimiter</code></td>
2643
-
2644
-
2645
- <td class="type">
2646
-
2647
-
2648
- <code class="param-type">string</code>
2649
-
2650
-
2651
-
2652
- </td>
2653
-
2654
-
2655
-
2656
-
2657
- <td class="default">
2658
-
2659
- *
2660
-
2661
- </td>
2662
-
2663
-
2664
- <td class="description last"><p>Bracket character (default: '*')</p></td>
2665
- </tr>
2666
-
2667
-
2668
-
2669
-
2670
-
2671
- <tr class="deep-level-0">
2672
-
2673
- <td class="name"><code>separator</code></td>
2674
-
2675
-
2676
- <td class="type">
2677
-
2678
-
2679
- <code class="param-type">string</code>
2680
-
2681
-
2682
-
2683
- </td>
2684
-
2685
-
2686
-
2687
-
2688
- <td class="default">
2689
-
2690
- ,
2691
-
2692
- </td>
2693
-
2694
-
2695
- <td class="description last"><p>Item separator within brackets (default: ',')</p></td>
2696
- </tr>
2697
-
2698
-
2699
-
2700
- </tbody>
2701
- </table>
2702
- </div>
2703
-
2704
-
2705
-
2706
-
2707
-
2708
- <dl class="details">
2709
-
2710
-
2711
-
2712
-
2713
-
2714
-
2715
-
2716
-
2717
-
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
-
2730
-
2731
-
2732
-
2733
-
2734
-
2735
-
2736
-
2737
-
2738
-
2739
-
2740
- <p class="tag-source">
2741
- <a href="src_csvToJson.js.html" class="button">View Source</a>
2742
- <span>
2743
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line94">line 94</a>
2744
- </span>
2745
- </p>
2746
-
2747
- </dl>
2748
-
2749
-
2750
-
2751
-
2752
-
2753
-
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
-
2762
-
2763
-
2764
-
2765
-
2766
- <div class='columns method-parameter'>
2767
- <div class="column is-2"><label>Returns:</label></div>
2768
- <div class="column is-10">
2769
-
2770
-
2771
-
2772
- <div class="columns">
2773
-
2774
- <div class='param-desc column is-7'><p>For method chaining</p></div>
2775
-
2776
-
2777
- <div class='column is-5 has-text-left'>
2778
- <label>Type: </label>
2779
-
2780
- <code class="param-type">this</code>
2781
-
2782
-
2783
- </div>
2784
-
2785
- </div>
2786
-
2787
-
2788
- </div>
2789
- </div>
2790
-
2791
-
2792
-
2793
-
2794
- <h5>Example</h5>
2795
-
2796
-
2797
- <pre class="prettyprint"><code>// Input: "*val1,val2,val3*"
2798
- // Output: ["val1", "val2", "val3"]
2799
- .parseSubArray('*', ',')</code></pre>
2800
-
2801
-
2802
-
2803
- </div>
2804
-
2805
- <div class="member">
2806
-
2807
-
2808
-
2809
- <h4 class="name" id="split">
2810
- <a class="href-link" href="#split">#</a>
2811
-
2812
- <span class="code-name">
2813
-
2814
- split<span class="signature">(line)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span>
2815
-
2816
- </span>
2817
- </h4>
2818
-
2819
-
2820
-
2821
-
2822
- <div class="description">
2823
- <p>Split a CSV record line into fields, respecting quoted fields per RFC 4180.
2824
- Handles:</p>
2825
- <ul>
2826
- <li>Quoted fields with embedded delimiters and newlines</li>
2827
- <li>Escaped quotes (double quotes within quoted fields)</li>
2828
- <li>Empty quoted fields</li>
2829
- </ul>
2830
- </div>
2831
-
2832
-
2833
-
2834
-
2835
-
2836
-
2837
-
2838
-
2839
-
2840
-
2841
- <h5>Parameters:</h5>
2842
-
2843
- <div class="table-container">
2844
- <table class="params table">
2845
- <thead>
2846
- <tr>
2847
-
2848
- <th>Name</th>
2849
-
2850
-
2851
- <th>Type</th>
2852
-
2853
-
2854
-
2855
-
2856
-
2857
- <th class="last">Description</th>
2858
- </tr>
2859
- </thead>
2860
-
2861
- <tbody>
2862
-
2863
-
2864
-
2865
- <tr class="deep-level-0">
2866
-
2867
- <td class="name"><code>line</code></td>
2868
-
2869
-
2870
- <td class="type">
2871
-
2872
-
2873
- <code class="param-type">string</code>
2874
-
2875
-
2876
-
2877
- </td>
2878
-
2879
-
2880
-
2881
-
2882
-
2883
- <td class="description last"><p>A single CSV record line</p></td>
2884
- </tr>
2885
-
2886
-
2887
-
2888
- </tbody>
2889
- </table>
2890
- </div>
2891
-
2892
-
2893
-
2894
-
2895
-
2896
- <dl class="details">
2897
-
2898
-
2899
-
2900
-
2901
-
2902
-
2903
-
2904
-
2905
-
2906
-
2907
-
2908
-
2909
-
2910
-
2911
-
2912
-
2913
-
2914
-
2915
-
2916
-
2917
-
2918
-
2919
-
2920
-
2921
-
2922
-
2923
-
2924
-
2925
-
2926
-
2927
-
2928
- <p class="tag-source">
2929
- <a href="src_csvToJson.js.html" class="button">View Source</a>
2930
- <span>
2931
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line468">line 468</a>
2932
- </span>
2933
- </p>
2934
-
2935
- </dl>
2936
-
2937
-
2938
-
2939
-
2940
-
2941
-
2942
-
2943
-
2944
-
2945
-
2946
-
2947
-
2948
-
2949
-
2950
-
2951
-
2952
-
2953
-
2954
- <div class='columns method-parameter'>
2955
- <div class="column is-2"><label>Returns:</label></div>
2956
- <div class="column is-10">
2957
-
2958
-
2959
-
2960
- <div class="columns">
2961
-
2962
- <div class='param-desc column is-7'><p>Array of field values</p></div>
2963
-
2964
-
2965
- <div class='column is-5 has-text-left'>
2966
- <label>Type: </label>
2967
-
2968
- <code class="param-type">Array.&lt;string></code>
2969
-
2970
-
2971
- </div>
2972
-
2973
- </div>
2974
-
2975
-
2976
- </div>
2977
- </div>
2978
-
2979
-
2980
-
2981
-
2982
- </div>
2983
-
2984
- <div class="member">
2985
-
2986
-
2987
-
2988
- <h4 class="name" id="supportQuotedField">
2989
- <a class="href-link" href="#supportQuotedField">#</a>
2990
-
2991
- <span class="code-name">
2992
-
2993
- supportQuotedField<span class="signature">(active)</span><span class="type-signature"> &rarr; {this}</span>
2994
-
2995
- </span>
2996
- </h4>
2997
-
2998
-
2999
-
3000
-
3001
- <div class="description">
3002
- <p>Enable or disable support for RFC 4180 quoted fields
3003
- When enabled, fields wrapped in double quotes can contain delimiters and newlines</p>
3004
- </div>
3005
-
3006
-
3007
-
3008
-
3009
-
3010
-
3011
-
3012
-
3013
-
3014
-
3015
- <h5>Parameters:</h5>
3016
-
3017
- <div class="table-container">
3018
- <table class="params table">
3019
- <thead>
3020
- <tr>
3021
-
3022
- <th>Name</th>
3023
-
3024
-
3025
- <th>Type</th>
3026
-
3027
-
3028
-
3029
-
3030
-
3031
- <th class="last">Description</th>
3032
- </tr>
3033
- </thead>
3034
-
3035
- <tbody>
3036
-
3037
-
3038
-
3039
- <tr class="deep-level-0">
3040
-
3041
- <td class="name"><code>active</code></td>
3042
-
3043
-
3044
- <td class="type">
3045
-
3046
-
3047
- <code class="param-type">boolean</code>
3048
-
3049
-
3050
-
3051
- </td>
3052
-
3053
-
3054
-
3055
-
3056
-
3057
- <td class="description last"><p>Whether to support quoted fields</p></td>
3058
- </tr>
3059
-
3060
-
3061
-
3062
- </tbody>
3063
- </table>
3064
- </div>
3065
-
3066
-
3067
-
3068
-
3069
-
3070
- <dl class="details">
3071
-
3072
-
3073
-
3074
-
3075
-
3076
-
3077
-
3078
-
3079
-
3080
-
3081
-
3082
-
3083
-
3084
-
3085
-
3086
-
3087
-
3088
-
3089
-
3090
-
3091
-
3092
-
3093
-
3094
-
3095
-
3096
-
3097
-
3098
-
3099
-
3100
-
3101
-
3102
- <p class="tag-source">
3103
- <a href="src_csvToJson.js.html" class="button">View Source</a>
3104
- <span>
3105
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line43">line 43</a>
3106
- </span>
3107
- </p>
3108
-
3109
- </dl>
3110
-
3111
-
3112
-
3113
-
3114
-
3115
-
3116
-
3117
-
3118
-
3119
-
3120
-
3121
-
3122
-
3123
-
3124
-
3125
-
3126
-
3127
-
3128
- <div class='columns method-parameter'>
3129
- <div class="column is-2"><label>Returns:</label></div>
3130
- <div class="column is-10">
3131
-
3132
-
3133
-
3134
- <div class="columns">
3135
-
3136
- <div class='param-desc column is-7'><p>For method chaining</p></div>
3137
-
3138
-
3139
- <div class='column is-5 has-text-left'>
3140
- <label>Type: </label>
3141
-
3142
- <code class="param-type">this</code>
3143
-
3144
-
3145
- </div>
3146
-
3147
- </div>
3148
-
3149
-
3150
- </div>
3151
- </div>
3152
-
3153
-
3154
-
3155
-
3156
- </div>
3157
-
3158
- <div class="member">
3159
-
3160
-
3161
-
3162
- <h4 class="name" id="trimHeaderFieldWhiteSpace">
3163
- <a class="href-link" href="#trimHeaderFieldWhiteSpace">#</a>
3164
-
3165
- <span class="code-name">
3166
-
3167
- trimHeaderFieldWhiteSpace<span class="signature">(active)</span><span class="type-signature"> &rarr; {this}</span>
3168
-
3169
- </span>
3170
- </h4>
3171
-
3172
-
3173
-
3174
-
3175
- <div class="description">
3176
- <p>Configure whitespace handling in header field names</p>
3177
- </div>
3178
-
3179
-
3180
-
3181
-
3182
-
3183
-
3184
-
3185
-
3186
-
3187
-
3188
- <h5>Parameters:</h5>
3189
-
3190
- <div class="table-container">
3191
- <table class="params table">
3192
- <thead>
3193
- <tr>
3194
-
3195
- <th>Name</th>
3196
-
3197
-
3198
- <th>Type</th>
3199
-
3200
-
3201
-
3202
-
3203
-
3204
- <th class="last">Description</th>
3205
- </tr>
3206
- </thead>
3207
-
3208
- <tbody>
3209
-
3210
-
3211
-
3212
- <tr class="deep-level-0">
3213
-
3214
- <td class="name"><code>active</code></td>
3215
-
3216
-
3217
- <td class="type">
3218
-
3219
-
3220
- <code class="param-type">boolean</code>
3221
-
3222
-
3223
-
3224
- </td>
3225
-
3226
-
3227
-
3228
-
3229
-
3230
- <td class="description last"><p>If true, removes all whitespace from header names; if false, only trims edges</p></td>
3231
- </tr>
3232
-
3233
-
3234
-
3235
- </tbody>
3236
- </table>
3237
- </div>
3238
-
3239
-
3240
-
3241
-
3242
-
3243
- <dl class="details">
3244
-
3245
-
3246
-
3247
-
3248
-
3249
-
3250
-
3251
-
3252
-
3253
-
3254
-
3255
-
3256
-
3257
-
3258
-
3259
-
3260
-
3261
-
3262
-
3263
-
3264
-
3265
-
3266
-
3267
-
3268
-
3269
-
3270
-
3271
-
3272
-
3273
-
3274
-
3275
- <p class="tag-source">
3276
- <a href="src_csvToJson.js.html" class="button">View Source</a>
3277
- <span>
3278
- <a href="src_csvToJson.js.html">src/csvToJson.js</a>, <a href="src_csvToJson.js.html#line63">line 63</a>
3279
- </span>
3280
- </p>
3281
-
3282
- </dl>
3283
-
3284
-
3285
-
3286
-
3287
-
3288
-
3289
-
3290
-
3291
-
3292
-
3293
-
3294
-
3295
-
3296
-
3297
-
3298
-
3299
-
3300
-
3301
- <div class='columns method-parameter'>
3302
- <div class="column is-2"><label>Returns:</label></div>
3303
- <div class="column is-10">
3304
-
3305
-
3306
-
3307
- <div class="columns">
3308
-
3309
- <div class='param-desc column is-7'><p>For method chaining</p></div>
3310
-
3311
-
3312
- <div class='column is-5 has-text-left'>
3313
- <label>Type: </label>
3314
-
3315
- <code class="param-type">this</code>
3316
-
3317
-
3318
- </div>
3319
-
3320
- </div>
3321
-
3322
-
3323
- </div>
3324
- </div>
3325
-
3326
-
3327
-
3328
-
3329
- </div>
3330
-
3331
- </div>
3332
- </div>
3333
-
3334
-
3335
-
3336
-
3337
-
3338
- </article>
3339
-
3340
- </section>
3341
-
3342
-
3343
-
3344
-
3345
- </div>
3346
-
3347
- <footer class="footer">
3348
- <div class="content has-text-centered">
3349
- <p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a></p>
3350
- <p class="sidebar-created-by">
3351
- <a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
3352
- <a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
3353
- </p>
3354
- </div>
3355
- </footer>
3356
-
3357
- </div>
3358
- <div id="side-nav" class="side-nav">
3359
- </div>
3360
- </div>
3361
- <script src="scripts/app.min.js"></script>
3362
- <script>PR.prettyPrint();</script>
3363
- <script src="scripts/linenumber.js"> </script>
3364
-
3365
-
3366
- </body>
3367
- </html>