From ca43ee5d454cc61e6358bf21f8dc017347824e46 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Sun, 3 Aug 2014 11:14:00 -0500 Subject: [PATCH] # v0.4.2 * Added ability to specify a rowDelimiter when creating a csv. * Added discardUnmappedColumns option to allow the ignoring of extra data #45 --- .travis.yml | 2 +- History.md | 7 ++- README.md | 1 + docs/History.html | 7 ++- docs/index.html | 24 ++++---- lib/formatter.js | 6 +- package.json | 2 +- test/fast-csv.test.js | 125 +++++++++++++++++++++++++++++++----------- 8 files changed, 124 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index f4bdb423..0ce3be24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: - - 0.1 + - "0.10" before_script: - npm install -g grunt-cli \ No newline at end of file diff --git a/History.md b/History.md index 548b5b0d..6b91eebf 100644 --- a/History.md +++ b/History.md @@ -1,6 +1,11 @@ +# v0.4.2 + +* Added ability to specify a rowDelimiter when creating a csv. +* Added discardUnmappedColumns option to allow the ignoring of extra data [#45](https://github.com/C2FO/fast-csv/pull/45) + # v0.4.1 -* Fixed race condition that occured if you called pause during a flush. +* Fixed race condition that occurred if you called pause during a flush. # v0.4.0 diff --git a/README.md b/README.md index 74d1c8e3..28ace3be 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ csv Formatting accepts the same options as parsing with an additional `transform` option. * `transform(row)`: A function that accepts a row and returns a transformed one to be written. +* `rowDelimiter='\n'`: Specify an alternate row delimiter (i.e `\r\n`) **`createWriteStream(options)`** diff --git a/docs/History.html b/docs/History.html index 2795d4c8..de4caf67 100644 --- a/docs/History.html +++ b/docs/History.html @@ -176,9 +176,14 @@ +

v0.4.2

+

v0.4.1

v0.4.0