Skip to content

Commit fef33c6

Browse files
committed
Adding PREPEND_HEADER option to README
1 parent dd2a87a commit fef33c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ var converter = require('json-2-csv');
3434
* `FIELD` - String - Field Delimiter. Default: `','`
3535
* `ARRAY` - String - Array Value Delimiter. Default: `';'`
3636
* `WRAP` - String - Wrap values in the delimiter of choice (e.g. wrap values in quotes). Default: `''`
37+
* `PREPEND_HEADER` - Boolean - Should the auto-generated header be prepended as the first line in the CSV? Default: `true`
3738
* `EOL` - String - End of Line Delimiter. Default: `'\n'`
3839
* `KEYS` - Array - Specify the keys (as strings) that should be converted. Default: `null`
3940
* If you have a nested object (ie. {info : {name: 'Mike'}}), then set options.KEYS to ['info.name']

0 commit comments

Comments
 (0)