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.
- package/.github/workflows/ci-cd.yml +1 -1
- package/docs/.nojekyll +0 -0
- package/docs/README.md +44 -0
- package/docs/demo.bundle.js +1708 -0
- package/docs/index.html +536 -0
- package/eslint.config.js +1 -1
- package/package.json +5 -1
- package/docs/api/BrowserApi.html +0 -2662
- package/docs/api/BrowserApiError.html +0 -669
- package/docs/api/ConfigurationError.html +0 -745
- package/docs/api/CsvFormatError.html +0 -677
- package/docs/api/CsvParsingError.html +0 -511
- package/docs/api/CsvToJson.html +0 -3367
- package/docs/api/CsvToJsonAsync.html +0 -2880
- package/docs/api/FileOperationError.html +0 -382
- package/docs/api/FileUtils.html +0 -1150
- package/docs/api/InputValidationError.html +0 -407
- package/docs/api/JsonUtil.html +0 -452
- package/docs/api/JsonValidationError.html +0 -357
- package/docs/api/StringUtils.html +0 -833
- package/docs/api/global.html +0 -3498
- package/docs/api/index.html +0 -414
- package/docs/api/index.js.html +0 -447
- package/docs/api/scripts/app.min.js +0 -1
- package/docs/api/scripts/linenumber.js +0 -26
- package/docs/api/scripts/search.js +0 -39
- package/docs/api/src_browserApi.js.html +0 -362
- package/docs/api/src_csvToJson.js.html +0 -696
- package/docs/api/src_csvToJsonAsync.js.html +0 -335
- package/docs/api/src_util_errors.js.html +0 -472
- package/docs/api/src_util_fileUtils.js.html +0 -238
- package/docs/api/src_util_jsonUtils.js.html +0 -166
- package/docs/api/src_util_stringUtils.js.html +0 -306
- package/docs/api/styles/app.min.css +0 -1
- package/docs/api/styles/iframe.css +0 -13
- package/docs/api/styles/prettify-jsdoc.css +0 -111
- package/docs/api/styles/prettify-tomorrow.css +0 -132
- package/docs/api/styles/reset.css +0 -44
|
@@ -1,511 +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> CsvParsingError</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>CsvParsingError</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>CsvParsingError<span class="signature">(message, code, context)</span><span class="type-signature"></span></h2>
|
|
113
|
-
|
|
114
|
-
<div class="class-description"><p>Base class for all CSV parsing errors
|
|
115
|
-
Provides consistent error formatting and context</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="CsvParsingError">
|
|
135
|
-
<a class="href-link" href="#CsvParsingError">#</a>
|
|
136
|
-
|
|
137
|
-
<span class="code-name">
|
|
138
|
-
|
|
139
|
-
new CsvParsingError<span class="signature">(message, code, context)</span><span class="type-signature"></span>
|
|
140
|
-
|
|
141
|
-
</span>
|
|
142
|
-
</h4>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<div class="description">
|
|
148
|
-
<p>Create a CSV parsing error</p>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
<h5>Parameters:</h5>
|
|
161
|
-
|
|
162
|
-
<div class="table-container">
|
|
163
|
-
<table class="params table">
|
|
164
|
-
<thead>
|
|
165
|
-
<tr>
|
|
166
|
-
|
|
167
|
-
<th>Name</th>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<th>Type</th>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
<th class="last">Description</th>
|
|
177
|
-
</tr>
|
|
178
|
-
</thead>
|
|
179
|
-
|
|
180
|
-
<tbody>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
<tr class="deep-level-0">
|
|
185
|
-
|
|
186
|
-
<td class="name"><code>message</code></td>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<td class="type">
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<code class="param-type">string</code>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
</td>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<td class="description last"><p>Error message</p></td>
|
|
203
|
-
</tr>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<tr class="deep-level-0">
|
|
210
|
-
|
|
211
|
-
<td class="name"><code>code</code></td>
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<td class="type">
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<code class="param-type">string</code>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
</td>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
<td class="description last"><p>Error code for identification</p></td>
|
|
228
|
-
</tr>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
<tr class="deep-level-0">
|
|
235
|
-
|
|
236
|
-
<td class="name"><code>context</code></td>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
<td class="type">
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
<code class="param-type">object</code>
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
</td>
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<td class="description last"><p>Additional context information (default: {})</p></td>
|
|
253
|
-
</tr>
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
</tbody>
|
|
258
|
-
</table>
|
|
259
|
-
</div>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
<dl class="details">
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
<p class="tag-source">
|
|
298
|
-
<a href="src_util_errors.js.html" class="button">View Source</a>
|
|
299
|
-
<span>
|
|
300
|
-
<a href="src_util_errors.js.html">src/util/errors.js</a>, <a href="src_util_errors.js.html#line14">line 14</a>
|
|
301
|
-
</span>
|
|
302
|
-
</p>
|
|
303
|
-
|
|
304
|
-
</dl>
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
</div>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
<div class='vertical-section'>
|
|
350
|
-
<h1>Methods</h1>
|
|
351
|
-
<div class="members">
|
|
352
|
-
|
|
353
|
-
<div class="member">
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
<h4 class="name" id="toString">
|
|
358
|
-
<a class="href-link" href="#toString">#</a>
|
|
359
|
-
|
|
360
|
-
<span class="code-name">
|
|
361
|
-
|
|
362
|
-
toString<span class="signature">()</span><span class="type-signature"> → {string}</span>
|
|
363
|
-
|
|
364
|
-
</span>
|
|
365
|
-
</h4>
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
<div class="description">
|
|
371
|
-
<p>Convert error to formatted string with context information</p>
|
|
372
|
-
</div>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
<dl class="details">
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
<p class="tag-source">
|
|
420
|
-
<a href="src_util_errors.js.html" class="button">View Source</a>
|
|
421
|
-
<span>
|
|
422
|
-
<a href="src_util_errors.js.html">src/util/errors.js</a>, <a href="src_util_errors.js.html#line33">line 33</a>
|
|
423
|
-
</span>
|
|
424
|
-
</p>
|
|
425
|
-
|
|
426
|
-
</dl>
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
<div class='columns method-parameter'>
|
|
446
|
-
<div class="column is-2"><label>Returns:</label></div>
|
|
447
|
-
<div class="column is-10">
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
<div class="columns">
|
|
452
|
-
|
|
453
|
-
<div class='param-desc column is-7'><p>Formatted error message including context</p></div>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
<div class='column is-5 has-text-left'>
|
|
457
|
-
<label>Type: </label>
|
|
458
|
-
|
|
459
|
-
<code class="param-type">string</code>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
</div>
|
|
463
|
-
|
|
464
|
-
</div>
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
</div>
|
|
468
|
-
</div>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
</div>
|
|
474
|
-
|
|
475
|
-
</div>
|
|
476
|
-
</div>
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
</article>
|
|
483
|
-
|
|
484
|
-
</section>
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
</div>
|
|
490
|
-
|
|
491
|
-
<footer class="footer">
|
|
492
|
-
<div class="content has-text-centered">
|
|
493
|
-
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a></p>
|
|
494
|
-
<p class="sidebar-created-by">
|
|
495
|
-
<a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
|
|
496
|
-
<a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
|
|
497
|
-
</p>
|
|
498
|
-
</div>
|
|
499
|
-
</footer>
|
|
500
|
-
|
|
501
|
-
</div>
|
|
502
|
-
<div id="side-nav" class="side-nav">
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
<script src="scripts/app.min.js"></script>
|
|
506
|
-
<script>PR.prettyPrint();</script>
|
|
507
|
-
<script src="scripts/linenumber.js"> </script>
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
</body>
|
|
511
|
-
</html>
|