@@ -90,11 +90,12 @@ BMW,X5,2014,3287,M
90
90
* ` DELIMITER ` - Document - Specifies the different types of delimiters
91
91
* ` FIELD ` - String - Field Delimiter. Default: ` ',' `
92
92
* ` ARRAY ` - String - Array Value Delimiter. Default: ` ';' `
93
+ * ` WRAP ` - String - The character that field values are wrapped in. Default: ` '' `
93
94
* ` EOL ` - String - End of Line Delimiter. Default: ` '\n' `
94
95
* ` PARSE_CSV_NUMBERS ` - Boolean - (TODO) Should numbers that are found in the CSV be converted to numbers? Default: ` false `
95
96
* ` KEYS ` - Array - Specify the keys (as strings) that should be converted. Default: ` null `
96
97
* If you have a nested object (ie. {info : {name: 'Mike'}}), then set options.KEYS to [ 'info.name']
97
- * If you want all keys to be converted, then specify ``` null `` ` or don't specify the option to utilize the default.
98
+ * If you want all keys to be converted, then specify ` null ` or don't specify the option to utilize the default.
98
99
99
100
##### csv2json Example:
100
101
@@ -145,10 +146,10 @@ $ npm run coverage
145
146
146
147
Current Coverage is:
147
148
```
148
- Statements : 96.86 % ( 154/159 )
149
- Branches : 93.22 % ( 110/118 )
149
+ Statements : 96.88 % ( 155/160 )
150
+ Branches : 93.55 % ( 116/124 )
150
151
Functions : 100% ( 31/31 )
151
- Lines : 97.97 % ( 145/148 )
152
+ Lines : 97.99 % ( 146/149 )
152
153
```
153
154
154
155
## Features
@@ -162,6 +163,7 @@ Lines : 97.97% ( 145/148 )
162
163
- Ability to re-generate the JSON documents that were used to generate the CSV (including nested documents)
163
164
- Allows for custom field delimiters, end of line delimiters, etc.
164
165
- Promisifiable via bluebird's .promisify(<function >) and .promisifyAll(<object >) (as of 1.1.1)
166
+ - Wrapped value support for json2csv and csv2json (as of 1.3.0)
165
167
166
168
## F.A.Q.
167
169
0 commit comments