UNPKG

json-2-csv

Version:

A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.

33 lines (28 loc) 862 B
{ "Errors" : { "delimitersMustDiffer": "The field and array delimiters must differ.", "callbackRequired": "A callback is required!", "optionsRequired": "Options were not passed and are required.", "json2csv": { "cannotCallJson2CsvOn": "Cannot call json2csv on ", "dataNotArrayOfDocuments": "Data provided was not an array of documents.", "notSameSchema": "Not all documents have the same schema." }, "csv2json": { "cannotCallCsv2JsonOn": "Cannot call csv2json on ", "csvNotString": "CSV is not a string.", "noDataRetrieveHeading": "No data provided to retrieve heading." } }, "DefaultOptions" : { "DELIMITER" : { "FIELD" : ",", "ARRAY" : ";", "WRAP" : "" }, "EOL" : "\n", "PREPEND_HEADER" : true, "PARSE_CSV_NUMBERS" : false, "KEYS" : null } }