Skip to content

Commit 26385d8

Browse files
committed
Merge pull request #41 from doug-martin/master
v0.4.0
2 parents a3f772a + eb74861 commit 26385d8

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

History.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v0.4.0
2+
3+
* Fixed misspelling of `delimiter` [#40](https://github.com/C2FO/fast-csv/issues/40)
4+
15
# v0.3.1
26

37
* Added transform support to formatters

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ All methods accept the following `options`
1919
* `headers=false`: Ste to true if you expect the first line of your `CSV` to contain headers, alternatly you can specify an array of headers to use.
2020
* `ignoreEmpty=false`: If you wish to ignore empty rows.
2121
* `delimiter=','`: If your data uses an alternate delimiter such as `;` or `\t`.
22-
* **NOTE** When specifying an alternate `delimiter` you may only pass in a single character delimeter
23-
* `quote='"'`: The character to use to escape values that contain a delimeter.
22+
* **NOTE** When specifying an alternate `delimiter` you may only pass in a single character delimiter
23+
* `quote='"'`: The character to use to escape values that contain a delimiter.
2424
* `escape='"'`: The character to use when escaping a value that is `quoted` and contains a `quote` character.
2525
* `i.e`: 'First,"Name"' => '"First,""name"""'
2626
* The following are options for parsing only.

docs/History.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@
176176

177177

178178

179+
<h1>v0.4.0</h1>
180+
<ul>
181+
<li>Fixed misspelling of <code>delimiter</code> <a href="https://github.com/C2FO/fast-csv/issues/40">#40</a></li>
182+
</ul>
179183
<h1>v0.3.1</h1>
180184
<ul>
181185
<li>Added transform support to formatters<ul>

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ <h3>Parsing</h3>
191191
<li><code>headers=false</code>: Ste to true if you expect the first line of your <code>CSV</code> to contain headers, alternatly you can specify an array of headers to use.</li>
192192
<li><code>ignoreEmpty=false</code>: If you wish to ignore empty rows.</li>
193193
<li><code>delimiter=&#39;,&#39;</code>: If your data uses an alternate delimiter such as <code>;</code> or <code>\t</code>.<ul>
194-
<li><strong>NOTE</strong> When specifying an alternate <code>delimiter</code> you may only pass in a single character delimeter</li>
194+
<li><strong>NOTE</strong> When specifying an alternate <code>delimiter</code> you may only pass in a single character delimiter</li>
195195
</ul>
196196
</li>
197-
<li><code>quote=&#39;&quot;&#39;</code>: The character to use to escape values that contain a delimeter.</li>
197+
<li><code>quote=&#39;&quot;&#39;</code>: The character to use to escape values that contain a delimiter.</li>
198198
<li><code>escape=&#39;&quot;&#39;</code>: The character to use when escaping a value that is <code>quoted</code> and contains a <code>quote</code> character.<ul>
199199
<li><code>i.e</code>: &#39;First,&quot;Name&quot;&#39; =&gt; &#39;&quot;First,&quot;&quot;name&quot;&quot;&quot;&#39;</li>
200200
</ul>

lib/formatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var fs = require("fs"),
99

1010
function createFormatter(options) {
1111
options = options || {};
12-
var delimiter = options.delimeter || ",",
12+
var delimiter = options.delimiter || ",",
1313
ESCAPE_REGEXP = new RegExp("[" + delimiter + "\\r\\n']"),
1414
QUOTE = options.quote || '"',
1515
ESCAPE = options.escape || '"',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fast-csv",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"description": "CSV parser and writer",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)