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
package/docs/api/JsonUtil.html
DELETED
|
@@ -1,452 +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> JsonUtil</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>JsonUtil</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>JsonUtil<span class="signature">()</span><span class="type-signature"></span></h2>
|
|
113
|
-
|
|
114
|
-
<div class="class-description"><p>JSON validation utilities</p></div>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</header>
|
|
118
|
-
|
|
119
|
-
<article>
|
|
120
|
-
<div class="container-overview">
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
<div class='vertical-section'>
|
|
124
|
-
<div class="members">
|
|
125
|
-
<div class="member">
|
|
126
|
-
<div class=name>
|
|
127
|
-
<span class="tag">Constructor</span>
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<h4 class="name" id="JsonUtil">
|
|
134
|
-
<a class="href-link" href="#JsonUtil">#</a>
|
|
135
|
-
|
|
136
|
-
<span class="code-name">
|
|
137
|
-
|
|
138
|
-
new JsonUtil<span class="signature">()</span><span class="type-signature"></span>
|
|
139
|
-
|
|
140
|
-
</span>
|
|
141
|
-
</h4>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
<dl class="details">
|
|
160
|
-
|
|
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
|
-
<p class="tag-source">
|
|
192
|
-
<a href="src_util_jsonUtils.js.html" class="button">View Source</a>
|
|
193
|
-
<span>
|
|
194
|
-
<a href="src_util_jsonUtils.js.html">src/util/jsonUtils.js</a>, <a href="src_util_jsonUtils.js.html#line9">line 9</a>
|
|
195
|
-
</span>
|
|
196
|
-
</p>
|
|
197
|
-
|
|
198
|
-
</dl>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
</div>
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</div>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<div class='vertical-section'>
|
|
244
|
-
<h1>Methods</h1>
|
|
245
|
-
<div class="members">
|
|
246
|
-
|
|
247
|
-
<div class="member">
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<h4 class="name" id="validateJson">
|
|
252
|
-
<a class="href-link" href="#validateJson">#</a>
|
|
253
|
-
|
|
254
|
-
<span class="code-name">
|
|
255
|
-
|
|
256
|
-
validateJson<span class="signature">(json)</span><span class="type-signature"></span>
|
|
257
|
-
|
|
258
|
-
</span>
|
|
259
|
-
</h4>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
<div class="description">
|
|
265
|
-
<p>Validate that a string is valid JSON</p>
|
|
266
|
-
</div>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
<h5>Parameters:</h5>
|
|
278
|
-
|
|
279
|
-
<div class="table-container">
|
|
280
|
-
<table class="params table">
|
|
281
|
-
<thead>
|
|
282
|
-
<tr>
|
|
283
|
-
|
|
284
|
-
<th>Name</th>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
<th>Type</th>
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
<th class="last">Description</th>
|
|
294
|
-
</tr>
|
|
295
|
-
</thead>
|
|
296
|
-
|
|
297
|
-
<tbody>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
<tr class="deep-level-0">
|
|
302
|
-
|
|
303
|
-
<td class="name"><code>json</code></td>
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
<td class="type">
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
<code class="param-type">string</code>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
</td>
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
<td class="description last"><p>JSON string to validate</p></td>
|
|
320
|
-
</tr>
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
</tbody>
|
|
325
|
-
</table>
|
|
326
|
-
</div>
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
<dl class="details">
|
|
333
|
-
|
|
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
|
-
<p class="tag-source">
|
|
365
|
-
<a href="src_util_jsonUtils.js.html" class="button">View Source</a>
|
|
366
|
-
<span>
|
|
367
|
-
<a href="src_util_jsonUtils.js.html">src/util/jsonUtils.js</a>, <a href="src_util_jsonUtils.js.html#line16">line 16</a>
|
|
368
|
-
</span>
|
|
369
|
-
</p>
|
|
370
|
-
|
|
371
|
-
</dl>
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
<div class='columns method-parameter'>
|
|
389
|
-
<div class="column is-2"><label>Throws:</label></div>
|
|
390
|
-
<div class="column is-10">
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
<div class="columns">
|
|
394
|
-
|
|
395
|
-
<div class='param-desc column is-7'><p>If JSON is invalid</p></div>
|
|
396
|
-
<div class='column is-5 has-text-left'>
|
|
397
|
-
<label>Type: </label>
|
|
398
|
-
<code class="param-type"><a href="JsonValidationError.html">JsonValidationError</a></code>
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
</div>
|
|
402
|
-
|
|
403
|
-
</div>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
</div>
|
|
415
|
-
|
|
416
|
-
</div>
|
|
417
|
-
</div>
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
</article>
|
|
424
|
-
|
|
425
|
-
</section>
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
</div>
|
|
431
|
-
|
|
432
|
-
<footer class="footer">
|
|
433
|
-
<div class="content has-text-centered">
|
|
434
|
-
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a></p>
|
|
435
|
-
<p class="sidebar-created-by">
|
|
436
|
-
<a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
|
|
437
|
-
<a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
|
|
438
|
-
</p>
|
|
439
|
-
</div>
|
|
440
|
-
</footer>
|
|
441
|
-
|
|
442
|
-
</div>
|
|
443
|
-
<div id="side-nav" class="side-nav">
|
|
444
|
-
</div>
|
|
445
|
-
</div>
|
|
446
|
-
<script src="scripts/app.min.js"></script>
|
|
447
|
-
<script>PR.prettyPrint();</script>
|
|
448
|
-
<script src="scripts/linenumber.js"> </script>
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
</body>
|
|
452
|
-
</html>
|