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
* Added multiline value support
* Updated escaping logic
* More performance enhancements
* More robusts test cases
* Removed support for having two quote types instead it just supports a single quote and escape sequence.
<p>This is a library is aimed at providing fast CSV parsing. It accomplishes this by not handling some of the more complex
175
-
edge cases such as multi line rows. However it does support escaped values, embedded commas, double and single quotes.</p>
174
+
<p>This is a library that provides CSV parsing and formatting.</p>
175
+
<p><strong>NOTE</strong> As of v0.2.0 <code>fast-csv</code> supports multi-line values.</p>
176
176
<h2>Installation</h2>
177
177
<p><code>npm install fast-csv</code></p>
178
178
<h2>Usage</h2>
@@ -185,6 +185,11 @@ <h3>Parsing</h3>
185
185
<li><strong>NOTE</strong> When specifying an alternate <code>delimiter</code> you may only pass in a single character delimeter</li>
186
186
</ul>
187
187
</li>
188
+
<li><code>quote='"'</code>: The character to use to escape values that contain a delimeter.</li>
189
+
<li><code>escape='"'</code>: The character to use when escaping a value that is <code>quoted</code> and contains a <code>quote</code> character.<ul>
<li>The following are options for parsing only.<ul>
189
194
<li><code>trim=false</code>: If you want to trim all values parsed set to true.</li>
190
195
<li><code>rtrim=false</code>: If you want to right trim all values parsed set to true.</li>
@@ -324,15 +329,9 @@ <h3>Transforming</h3>
324
329
});</code></pre>
325
330
<h3>Formatting</h3>
326
331
<p><code>fast-csv</code> also allows to you to create create a <code>CSV</code> from data.</p>
327
-
<p>In addition to the options for parsing you can specify the following additional options.</p>
328
-
<ul>
329
-
<li><code>quote='"'</code>: The character to use to escape values that contain a delimeter.</li>
330
-
<li><code>escape='"'</code>: The character to use when escaping a value that is <code>quoted</code> and constains a <code>quote</code> character.<ul>
<p>Formatting accepts the same options as parsing.
333
+
<em>
334
+
<em>*Writing Data</em></em></p>
336
335
<p>Each of the following methods accept an array of values to be written, however each value must be an <code>array</code> of <code>array</code>s or <code>object</code>s.</p>
0 commit comments