convert-csv-to-json 4.13.0 → 4.15.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/eslint.config.js +115 -0
- package/index.js +21 -5
- package/jsdoc.json +29 -4
- package/package.json +5 -3
- package/src/browserApi.js +4 -3
- package/src/csvToJson.js +3 -2
- package/src/csvToJsonAsync.js +2 -1
- package/src/util/errors.js +10 -2
- package/src/util/fileUtils.js +1 -0
- package/src/util/jsonUtils.js +1 -0
- package/src/util/stringUtils.js +5 -1
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -48
- package/docs/api/BrowserApi.html +0 -2435
- package/docs/api/BrowserApiError.html +0 -522
- package/docs/api/ConfigurationError.html +0 -594
- package/docs/api/CsvFormatError.html +0 -530
- package/docs/api/CsvParsingError.html +0 -384
- package/docs/api/CsvToJson.html +0 -3136
- package/docs/api/CsvToJsonAsync.html +0 -2672
- package/docs/api/FileOperationError.html +0 -270
- package/docs/api/FileUtils.html +0 -1012
- package/docs/api/InputValidationError.html +0 -293
- package/docs/api/JsonUtil.html +0 -340
- package/docs/api/JsonValidationError.html +0 -247
- package/docs/api/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-Bold-webfont.svg +0 -1830
- package/docs/api/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/api/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
- package/docs/api/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/api/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-Italic-webfont.svg +0 -1830
- package/docs/api/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/api/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-Light-webfont.svg +0 -1831
- package/docs/api/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/api/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
- package/docs/api/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/api/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/api/fonts/OpenSans-Regular-webfont.svg +0 -1831
- package/docs/api/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/api/global.html +0 -3315
- package/docs/api/index.html +0 -326
- package/docs/api/index.js.html +0 -341
- package/docs/api/scripts/linenumber.js +0 -25
- package/docs/api/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/api/scripts/prettify/lang-css.js +0 -2
- package/docs/api/scripts/prettify/prettify.js +0 -28
- package/docs/api/src_browserApi.js.html +0 -271
- package/docs/api/src_csvToJson.js.html +0 -605
- package/docs/api/src_csvToJsonAsync.js.html +0 -244
- package/docs/api/src_util_errors.js.html +0 -374
- package/docs/api/src_util_fileUtils.js.html +0 -147
- package/docs/api/src_util_jsonUtils.js.html +0 -75
- package/docs/api/src_util_stringUtils.js.html +0 -212
- package/docs/api/styles/jsdoc-default.css +0 -358
- package/docs/api/styles/prettify-jsdoc.css +0 -111
- package/docs/api/styles/prettify-tomorrow.css +0 -132
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>JSDoc: Class: FileOperationError</title>
|
|
6
|
-
|
|
7
|
-
<script src="scripts/prettify/prettify.js"> </script>
|
|
8
|
-
<script src="scripts/prettify/lang-css.js"> </script>
|
|
9
|
-
<!--[if lt IE 9]>
|
|
10
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
-
<![endif]-->
|
|
12
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
13
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
|
|
18
|
-
<div id="main">
|
|
19
|
-
|
|
20
|
-
<h1 class="page-title">Class: FileOperationError</h1>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<section>
|
|
28
|
-
|
|
29
|
-
<header>
|
|
30
|
-
|
|
31
|
-
<h2><span class="attribs"><span class="type-signature"></span></span>FileOperationError<span class="signature">(operation, filePath, originalError)</span><span class="type-signature"></span></h2>
|
|
32
|
-
|
|
33
|
-
<div class="class-description"><p>File operation errors
|
|
34
|
-
Thrown when file read or write operations fail</p></div>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</header>
|
|
38
|
-
|
|
39
|
-
<article>
|
|
40
|
-
<div class="container-overview">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<h2>Constructor</h2>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<h4 class="name" id="FileOperationError"><span class="type-signature"></span>new FileOperationError<span class="signature">(operation, filePath, originalError)</span><span class="type-signature"></span></h4>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<div class="description">
|
|
57
|
-
<p>Create a file operation error</p>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<h5>Parameters:</h5>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<table class="params">
|
|
72
|
-
<thead>
|
|
73
|
-
<tr>
|
|
74
|
-
|
|
75
|
-
<th>Name</th>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<th>Type</th>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<th class="last">Description</th>
|
|
85
|
-
</tr>
|
|
86
|
-
</thead>
|
|
87
|
-
|
|
88
|
-
<tbody>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<tr>
|
|
92
|
-
|
|
93
|
-
<td class="name"><code>operation</code></td>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<td class="type">
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<span class="param-type">string</span>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</td>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<td class="description last"><p>Type of operation that failed (e.g., 'read', 'write')</p></td>
|
|
110
|
-
</tr>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<tr>
|
|
115
|
-
|
|
116
|
-
<td class="name"><code>filePath</code></td>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<td class="type">
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<span class="param-type">string</span>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</td>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<td class="description last"><p>Path to the file where operation failed</p></td>
|
|
133
|
-
</tr>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<tr>
|
|
138
|
-
|
|
139
|
-
<td class="name"><code>originalError</code></td>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<td class="type">
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<span class="param-type">Error</span>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</td>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
<td class="description last"><p>The underlying error object from Node.js</p></td>
|
|
156
|
-
</tr>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</tbody>
|
|
160
|
-
</table>
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<dl class="details">
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
<dt class="tag-source">Source:</dt>
|
|
195
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
196
|
-
<a href="src_util_errors.js.html">src/util/errors.js</a>, <a href="src_util_errors.js.html#line204">line 204</a>
|
|
197
|
-
</li></ul></dd>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</dl>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
</div>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
</article>
|
|
249
|
-
|
|
250
|
-
</section>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
</div>
|
|
256
|
-
|
|
257
|
-
<nav>
|
|
258
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BrowserApi.html">BrowserApi</a></li><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="CsvToJson.html">CsvToJson</a></li><li><a href="CsvToJsonAsync.html">CsvToJsonAsync</a></li><li><a href="FileOperationError.html">FileOperationError</a></li><li><a href="FileUtils.html">FileUtils</a></li><li><a href="InputValidationError.html">InputValidationError</a></li><li><a href="JsonUtil.html">JsonUtil</a></li><li><a href="JsonValidationError.html">JsonValidationError</a></li></ul><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#browser">browser</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>
|
|
259
|
-
</nav>
|
|
260
|
-
|
|
261
|
-
<br class="clear">
|
|
262
|
-
|
|
263
|
-
<footer>
|
|
264
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
|
|
265
|
-
</footer>
|
|
266
|
-
|
|
267
|
-
<script> prettyPrint(); </script>
|
|
268
|
-
<script src="scripts/linenumber.js"> </script>
|
|
269
|
-
</body>
|
|
270
|
-
</html>
|