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

add .csv type support #264

Closed
zoheirkhonyagar opened this issue Dec 1, 2019 · 2 comments
Closed

add .csv type support #264

zoheirkhonyagar opened this issue Dec 1, 2019 · 2 comments

Comments

@zoheirkhonyagar
Copy link

zoheirkhonyagar commented Dec 1, 2019

Hi, I need .csv type support . Is that possible ?

@Borewit
Copy link
Collaborator

Borewit commented Dec 19, 2019

It is not straight forward for sure, it is hard to distinct a .csv from an ordinary text file, as there is no signature.

The way comma's are used could indicate it is .csv. Which require a fair amount of records to be able to reliable detect the pattern.

@sindresorhus
Copy link
Owner

That's also not accounting for that CSV could also be tab-delimited or colon-delimited. There are also multiple ways values could be escaped. The only good way is to actually parse a file as CSV to see if it's valid, and even then you can't be 100% sure until you check the actual results. I don't think CSV detection would be something we could reliably provide. We should document this fact in the readme.

Repository owner deleted a comment from ArtashMardoyan Feb 21, 2020
Repository owner locked as resolved and limited conversation to collaborators Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants