Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create default options object when none is provided #210

Open
DavidVotrubec opened this issue Jun 19, 2017 · 0 comments
Open

Create default options object when none is provided #210

DavidVotrubec opened this issue Jun 19, 2017 · 0 comments

Comments

@DavidVotrubec
Copy link

Method CSV.stringify() requires 2 arguments. Data and Options.
I believe that Options should be optional, especially when supplying empty object is sufficient.

The second issue is that the options should have some reasonable default values, which could be optionally overrided. Fox example the options.txtDelim should have default value of '"'.

If options.txtDelim is not provided and data contain comma in the middle of some text property, then this comma is not automatically escaped and creates new column in generated CSV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant