You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/History.html
+31-22
Original file line number
Diff line number
Diff line change
@@ -176,33 +176,42 @@
176
176
177
177
178
178
179
-
<h1id="v0-5-5">v0.5.5</h1>
179
+
<h1>v0.5.6</h1>
180
+
<ul>
181
+
<li>Fixed issue where parser_stream was emitting end early <ahref="https://github.com/C2FO/fast-csv/issues/87">#87</a><ul>
182
+
<li>Changed to not emit end during flush</li>
183
+
<li>Changed catch errors on emit and emit as "error" event</li>
184
+
</ul>
185
+
</li>
186
+
<li>Added support for node <code>v0.12</code></li>
187
+
</ul>
188
+
<h1>v0.5.5</h1>
180
189
<ul>
181
190
<li>Fixed issues with ordering of headers when specifying headers in a write stream <ahref="https://github.com/C2FO/fast-csv/pull/77">#77</a></li>
182
191
<li>Fixed issue where headers were not being written if no data was supplied to write stream.</li>
183
192
</ul>
184
-
<h1id="v0-5-4">v0.5.4</h1>
193
+
<h1>v0.5.4</h1>
185
194
<ul>
186
195
<li>Fixed issues with error handling and not registering an error handler on stream <ahref="https://github.com/C2FO/fast-csv/issues/68">#68</a></li>
187
196
<li>Added support for ignoring quoting while parsing <ahref="https://github.com/C2FO/fast-csv/issues/75">#75</a></li>
188
197
</ul>
189
-
<h1id="v0-5-3">v0.5.3</h1>
198
+
<h1>v0.5.3</h1>
190
199
<ul>
191
200
<li>Fixed issues with <code>v0.11</code> stream implementation <ahref="https://github.com/C2FO/fast-csv/issues/73">#73</a></li>
192
201
<li>Fixed issues with <code>pause/resume</code> and data events in <code>v0.10</code><ahref="https://github.com/C2FO/fast-csv/issues/69">#69</a></li>
193
202
<li>Fixed the double invoking of done callback when parsing files <ahref="https://github.com/C2FO/fast-csv/issues/68">#68</a></li>
194
203
<li>Refactored tests</li>
195
204
</ul>
196
-
<h1id="v0-5-2">v0.5.2</h1>
205
+
<h1>v0.5.2</h1>
197
206
<ul>
198
207
<li>Fixed issue with <code>writeToString</code> and <code>writeToPath</code> examples <ahref="https://github.com/C2FO/fast-csv/issues/64">#64</a></li>
199
208
<li>Fixed issue with creating a csv without headers <ahref="https://github.com/C2FO/fast-csv/issues/63">#63</a></li>
200
209
</ul>
201
-
<h1id="v0-5-1">v0.5.1</h1>
210
+
<h1>v0.5.1</h1>
202
211
<ul>
203
212
<li>Fixed issue where line data was not being passed between transforms in the parser_stream</li>
204
213
</ul>
205
-
<h1id="v0-5-0">v0.5.0</h1>
214
+
<h1>v0.5.0</h1>
206
215
<ul>
207
216
<li>Added support for async transforms <ahref="https://github.com/C2FO/fast-csv/issues/24">#24</a></li>
208
217
<li>Added support for async validation</li>
@@ -219,67 +228,67 @@ <h1 id="v0-5-0">v0.5.0</h1>
219
228
<li>More tests</li>
220
229
<li>Code refactor and clean up</li>
221
230
</ul>
222
-
<h1id="v0-4-4">v0.4.4</h1>
231
+
<h1>v0.4.4</h1>
223
232
<ul>
224
233
<li>Added support for comments. <ahref="https://github.com/C2FO/fast-csv/issues/56">#56</a></li>
225
234
</ul>
226
-
<h1id="v0-4-3">v0.4.3</h1>
235
+
<h1>v0.4.3</h1>
227
236
<ul>
228
237
<li>Added ability to include a <code>rowDelimiter</code> at the end of a csv with the <code>includeEndRowDelimiter</code> option <ahref="https://github.com/C2FO/fast-csv/issues/54">#54</a></li>
229
238
<li>Added escaping for values that include a row delimiter</li>
230
239
<li>Added more tests for new feature and escaping row delimiter values.</li>
231
240
</ul>
232
-
<h1id="v0-4-2">v0.4.2</h1>
241
+
<h1>v0.4.2</h1>
233
242
<ul>
234
243
<li>Added ability to specify a rowDelimiter when creating a csv.</li>
235
244
<li>Added discardUnmappedColumns option to allow the ignoring of extra data <ahref="https://github.com/C2FO/fast-csv/pull/45">#45</a></li>
236
245
</ul>
237
-
<h1id="v0-4-1">v0.4.1</h1>
246
+
<h1>v0.4.1</h1>
238
247
<ul>
239
248
<li>Fixed race condition that occurred if you called pause during a flush.</li>
240
249
</ul>
241
-
<h1id="v0-4-0">v0.4.0</h1>
250
+
<h1>v0.4.0</h1>
242
251
<ul>
243
252
<li>Fixed misspelling of <code>delimiter</code><ahref="https://github.com/C2FO/fast-csv/issues/40">#40</a></li>
244
253
</ul>
245
-
<h1id="v0-3-1">v0.3.1</h1>
254
+
<h1>v0.3.1</h1>
246
255
<ul>
247
256
<li>Added transform support to formatters<ul>
248
257
<li>When using <code>createWriteStream</code> you can now you the <code>transform</code> method to specify a row transformer.</li>
249
258
<li>When using other transform methods you can specify a <code>transform</code> option.</li>
250
259
</ul>
251
260
</li>
252
261
</ul>
253
-
<h1id="v0-3-0">v0.3.0</h1>
262
+
<h1>v0.3.0</h1>
254
263
<ul>
255
264
<li>You can now specify <code>objectMode</code> when parsing a csv which will cause <code>data</code> events to have an object emitted.</li>
256
265
<li>You can now pipe directly to the stream returned from <code>createWriteStream</code></li>
257
266
<li>You can now transform csvs by piping output from parsing into a formatter.</li>
258
267
</ul>
259
-
<h1id="v0-2-5">v0.2.5</h1>
268
+
<h1>v0.2.5</h1>
260
269
<ul>
261
270
<li>Fixed issue where not all rows are emitted when using <code>pause</code> and <code>resume</code></li>
262
271
</ul>
263
-
<h1id="v0-2-4">v0.2.4</h1>
272
+
<h1>v0.2.4</h1>
264
273
<ul>
265
274
<li>Added more fine grained control to <code>.pause</code> and <code>.resume</code><ul>
266
275
<li>You can now pause resume between chunks</li>
267
276
</ul>
268
277
</li>
269
278
</ul>
270
-
<h1id="v0-2-3">v0.2.3</h1>
279
+
<h1>v0.2.3</h1>
271
280
<ul>
272
281
<li>Add new <code>createWriteStream</code> for creating a streaming csv writer</li>
273
282
</ul>
274
-
<h1id="v0-2-2">v0.2.2</h1>
283
+
<h1>v0.2.2</h1>
275
284
<ul>
276
285
<li>Fixed issue with having line breaks containing <code>\r\n</code></li>
277
286
</ul>
278
-
<h1id="v0-2-1">v0.2.1</h1>
287
+
<h1>v0.2.1</h1>
279
288
<ul>
280
289
<li>Fixed issue with <code>\r</code> line break in parser</li>
281
290
</ul>
282
-
<h1id="v0-2-0">v0.2.0</h1>
291
+
<h1>v0.2.0</h1>
283
292
<ul>
284
293
<li>Added multiline value support</li>
285
294
<li>Updated escaping logic</li>
@@ -288,17 +297,17 @@ <h1 id="v0-2-0">v0.2.0</h1>
288
297
<li>Removed support for having two quote types instead it just supports a single quote and escape sequence.
289
298
Source code (zip)</li>
290
299
</ul>
291
-
<h1id="v0-1-2">v0.1.2</h1>
300
+
<h1>v0.1.2</h1>
292
301
<ul>
293
302
<li>Fixed issue with formatter handling undefined or null values.</li>
294
303
<li>Changed formatter not not include a new line at the end of a CSV.</li>
295
304
<li>Added pause and resume functionality to ParserStream</li>
296
305
</ul>
297
-
<h1id="v0-1-1">v0.1.1</h1>
306
+
<h1>v0.1.1</h1>
298
307
<ul>
299
308
<li>Added trim, ltrim, and rtrim to parsing options</li>
<p>This is a library that provides CSV parsing and formatting.</p>
183
183
<p><strong>NOTE</strong> As of v0.2.0 <code>fast-csv</code> supports multi-line values.</p>
184
-
<h2id="installation">Installation</h2>
184
+
<h2>Installation</h2>
185
185
<p><code>npm install fast-csv</code></p>
186
-
<h2id="usage">Usage</h2>
187
-
<h3id="parsing">Parsing</h3>
186
+
<h2>Usage</h2>
187
+
<h3>Parsing</h3>
188
188
<p>All methods accept the following <code>options</code></p>
189
189
<ul>
190
190
<li><code>objectMode=true</code>: Ensure that <code>data</code> events have an object emitted rather than the stringified version set to false to have a stringified buffer.</li>
<h2id="piping-from-parser-to-writer">Piping from Parser to Writer</h2>
742
+
<h2>Piping from Parser to Writer</h2>
743
743
<p>You can use <code>fast-csv</code> to pipe the output from a parsed CSV to a transformed CSV by setting the parser to <code>objectMode</code> and using <code>createWriteStream</code>.</p>
<p>Sometimes you may need to quote columns is certain ways in order meet certain requirements. <code>fast-csv</code> can quote columns and headers almost anyway you may need.</p>
779
779
<p><strong>Note</strong> in the following example we use <code>writeToString</code> but the options option are valid for any of the formatting methods.</p>
0 commit comments