Comments (5)
Hello @slpixe , thanks for the suggestion.
So, you want an option to always double quote all field values. Do you mind sharing why you want that option?
from csv-writer.
In my case, I want to create test data that is very close to the original one.
The original uses quotes for every field.
André
from csv-writer.
Hey @ryu1kn, thanks for the nice library.
I also need this option. The external software for which we write the CSV does not read the CSV correctly without quotation marks.
from csv-writer.
Already 3 people raising this. (Sorry I somehow missed your comment, @vergissberlin ...) Seems like some programmes are picky on this...
And as @slpixe pointed, from RFC 4180 perspective, quoting all fields is possible too.
Each field may or may not be enclosed in double quotes
I was kind of reluctant to introduce this as I think it's parser's responsibility to deal with all valid CSVs (plus I didn't want to complicate csv-writer even it would be minor). But given the reality, I think it's reasonable to allow csv-writer to produce fields always with quotes.
from csv-writer.
Introduced alwaysQuote
flag. Released as v1.5.0.
from csv-writer.
Related Issues (20)
- [Bug]: Cannot Read Properties of undefined (reading 'map') when headers aren't provided HOT 1
- [Bug]: Remove typescript files from build HOT 1
- Support for tab field delimiter
- Replace null with 0 HOT 1
- Leading zeros after two decimals digits
- Issue with `writeRecords` in CSV-Writer and a Temporary Solution
- Wrap string values with new lines in quotes HOT 3
- Support object sub-field queries in "id" HOT 3
- Doesn't work in browser HOT 7
- Contact | Security Issue HOT 1
- Suport for comma as decimal separator HOT 1
- RFC 4180 compliance and line endings
- Support writing to other destinations
- Append:true doesn't create a file with headers HOT 4
- Json object with second json HOT 2
- How to make the output into a buffer instead of file ?
- Quotes not added if field contains carriage return HOT 1
- Can we create multiple sheet in a single csv file using csv-writer library? If no, then I request you to develop this feature. HOT 1
- Build error when using with pnpm and nestjs HOT 5
- Publish new version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csv-writer.