zemirco / json2csv

Convert json to csv with column titles
http://zemirco.github.io/json2csv
MIT License
2.72k stars 363 forks source link

Transform export #257

Closed terryweiss closed 6 years ago

terryweiss commented 6 years ago
  1. Include the command or code you used. const Json2csvTransform = require('json2csv').Transform;

  2. Include a sample dataset that we can test against. any

  3. Include your output/error. Transform not found

I looked at the code installed by npm and the code in master and Transform is not exported. I will use json2csv-stream instead and I will be happy to to issue a PR with an updated readme, but I want to make sure I understand the expectations. Is this supposed to be part of the feature set? Is the new-api branch's readme the correct one?

Terry

knownasilya commented 6 years ago

Are you testing against the master branch version of the library (we haven't released a new version to npm yet)?

knownasilya commented 6 years ago

I just published an alpha version 4.0.0-alpha.1

knownasilya commented 6 years ago

cc @juanjoDiaz

juanjoDiaz commented 6 years ago

Yup, sounds like using the old version of the library. Version 4.X should solve it.

Any reason to publish alpha instead of publishing 4.0.0 directly? What are the steps to move away from alpha?

knownasilya commented 6 years ago

Just wanted to do a quick release that we can try out before doing a 4.0. Mainly to catch anything we missed without affecting too many people.

terryweiss commented 6 years ago

I'm running this now. It has not caused any issues yet and the readme matches the API I am seeing. Thanks for the quick response. If there is anything further I can do to help, let me know.

I assume this should stay open until 4.0 is released?

knownasilya commented 6 years ago

v4.0.0 Released