The code has moved to a new home.
This repository stays as a the historic home of json2csv up until v5.
From v6, the library has been broken into smaller libraries that are now published to NPM independently:
- Plainjs: Includes the
ParserAPI and a newStreamParserAPI which doesn't the conversion in a streaming fashion in pure js. - Node: Includes the
Node TransformandNode Async ParserAPIs for Node users. - WHATWG: Includes the
WHATWG Transform StreamandWHATWG Async ParserAPIs for users of WHATWG streams (browser, Node or Deno). - CLI: Includes the
CLIinterface. - Transforms: Includes the built-in
transformsfor json2csv. - Formatters: Includes the built-in
formattersfor json2csv. Formatters are the new way to format data before adding it to the resulting CSV.
Up-to-date documentation of the library can be found at https://juanjodiaz.github.io/json2csv