frictionlessdata / frictionless-js

A lightweight, standardized library accessing files and datasets, especially tabular ones (CSV, Excel).
https://frictionlessdata.io
71 stars 8 forks source link

Add support for datapackage.yml files? #136

Closed khughitt closed 2 years ago

khughitt commented 2 years ago

It looks like the library is currently hard-coded to expect json files.

Would it be possible to support datapackage.yml files as well?

khughitt commented 2 years ago

On second thought; don't waste your time on this now..

Since frictionless-js is primarily targeting the web, and since JSON is the natural way to communicate over the web, I don't think supporting yaml datapackage files (as much as I might prefer it for most purposes), is really all that important.

I'm going to close this for now.

If it turns out to be useful in the future, we can always re-open & consider it then.

rufuspollock commented 2 years ago

@khughitt well we use this a lot as a node library. A major use case for yaml is frontmatter in markdown files - using frictionless schema stuff in frontmatter to turn a markdown file into a dataset (or general data literate document). For more see https://portaljs.org/data-literate

khughitt commented 2 years ago

@rufuspollock Okay nice! I will take a look. A lot of my earlier efforts were focused around working with metadata files via pipelines & CLI tools, so that framed how I was initially thinking about this.