frictionlessdata / tableschema-js

A JavaScript library for working with Table Schema.
http://frictionlessdata.io/
MIT License
82 stars 27 forks source link

Parse from string #183

Open alexkreidler opened 3 years ago

alexkreidler commented 3 years ago

Table.load should accept CSV files as a string and parse them.This would help users with browser environments, as they wouldn't need to create a Stream to pass in some data.

To distinguish against the string input that is a local or remote file, we could either use a heuristic like string length, or a regex matching slashes or .csv, and we could try the options in order, or better yet, we could just add an option to enable parsing as CSV and keep the default behavior the same.

Thanks!


Please preserve this line to notify @roll (lead of this repository)

roll commented 3 years ago

It might have been implemented in frictionless-js cc @risenW

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.