Skip to content

Commit 4f18f31

Browse files
committed
Fixing #75
1 parent aa346e3 commit 4f18f31

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ json2csv(array, callback, options)
5353
* Default: `'null'`
5454
* `trimHeaderFields` - Boolean - Should the header fields be trimmed?
5555
* Default: `false`
56-
* `trimFieldValues` - Boolean - Should the field values be trimmed?
56+
* `trimFieldValues` - Boolean - Should the field values be trimmed? (*in development*)
5757
* Default: `false`
5858
* `checkSchemaDifferences` - Boolean - Should all documents have the same schema?
5959
* Default: `true`
@@ -83,7 +83,7 @@ csv2json(csv, callback, options)
8383
* Default: `''`
8484
* `eol` - String - End of Line Delimiter.
8585
* Default: `'\n'`
86-
* `trimHeaderValues` - Boolean - Should the header fields be trimmed?
86+
* `trimHeaderFields` - Boolean - Should the header fields be trimmed?
8787
* Default: `false`
8888
* `trimFieldValues` - Boolean - Should the field values be trimmed?
8989
* Default: `false`

lib/converter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var buildOptions = function (opts, cb) {
3636
if (opts) {
3737
copyOption(opts, 'prependHeader', 'PREPEND_HEADER');
3838
copyOption(opts, 'trimHeaderFields', 'TRIM_HEADER_FIELDS');
39+
copyOption(opts, 'trimFieldValues', 'TRIM_FIELD_VALUES');
3940
copyOption(opts, 'sortHeader', 'SORT_HEADER');
4041
copyOption(opts, 'parseCsvNumbers', 'PARSE_CSV_NUMBERS');
4142
copyOption(opts, 'keys', 'KEYS');

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "mrodrig",
33
"name": "json-2-csv",
44
"description": "A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.",
5-
"version": "2.1.0",
5+
"version": "2.1.1",
66
"repository": {
77
"type": "git",
88
"url": "http://github.com/mrodrig/json-2-csv.git"
@@ -26,13 +26,13 @@
2626
"dependencies": {
2727
"underscore": "1.8.3",
2828
"doc-path": "1.0.8",
29-
"bluebird": "3.4.6"
29+
"bluebird": "3.5.0"
3030
},
3131
"devDependencies": {
32-
"mocha": "3.1.0",
32+
"mocha": "3.3.0",
3333
"istanbul": "0.4.5",
34-
"should": "11.1.0",
35-
"async": "2.0.1"
34+
"should": "11.2.1",
35+
"async": "2.3.0"
3636
},
3737
"engines": {
3838
"node": "*"

0 commit comments

Comments
 (0)