且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

转换使用大数据集将JSON输出解析为CSV

更新时间:2022-11-03 08:44:44

如果您能够在浏览器中运行脚本,请查看 PapaParse JavaScript库 - 它支持大型数据集的分块和多线程,并且可以将 JSON转换为CSV

If you're able to run a script in the browser, check out the PapaParse JavaScript library -- it supports chunking and multi-threading for larger datasets and can convert JSON to CSV.

可能相关的特定配置选项


  • 工人

  • chunk

  • fastMode

  • worker
  • chunk
  • fastMode

或者,还有一个 PapaParse 用于Node.js,但没有 worker chunk 选项。

Alternatively, there is a fork of PapaParse for Node.js, though without the worker and chunk options.

我与这个库没有联系,但是已经成功地用于大型数据集上的CSV到JSON转换。