{"repo":"mrodrig/json-2-csv","free":true,"listed":false,"github":"https://github.com/mrodrig/json-2-csv","clone":"git clone https://github.com/mrodrig/json-2-csv.git","description":"Convert JSON to CSV *or* CSV to JSON!","language":"TypeScript","stars":459,"topics":["javascript","csv","json2csv","csv2json","json","rfc4180","node","node-module","cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"json-2-csv Convert JSON to CSV or CSV to JSON This node module will convert an array of JSON documents to a CSV string. Column headings will be automatically generated based on the keys of the JSON documents. Nested documents will have a '.' appended between the keys. It is also capable of converting CSV of the same form back into the original array of JSON documents. The columns headings will be used as the JSON document keys. All lines must have the same exact number of CSV values. Installation CLI: Upgrading? Upgrading to v5 from v4? Check out the upgrade guide. Usage or API json2csv(array, options) = string Returns the CSV string or rejects with an Error if there was an issue. array - An array of JSON documents to be converted to CSV. options - (Optional) A JSON document specifying any of the following key value pairs: arrayIndexesAsKeys - Boolean - Should array indexes be included in the generated keys? Default: false Note: This provides a more accurate representation of the JSON in the returned CSV, but may be less human readable. See #207 for more details. checkSchemaDifferences - Boolean - Should all documents have the same schema? Default: false Note: An error will be thrown if some documents have differing schemas when this is set to true . delimiter - Document - Specifies the different types of delimiters field - String - Field Delimiter. Default: , wrap - String - Wrap values in the delimiter of choice (e.g. wrap values in quotes). Default: \" eol - String - End of","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrodrig","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrodrig/json-2-csv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}