Csv2JsonJS
A CSV to/from JSON converter library
Installation
Csv2JsonJS is available on NPM registry
npm install csv2jsonjs
Usage
Converting JSON to CSV
const fs = ;const convertJsonToCsv = ; const jsonContent = fs;const csv = ;console;
convertJsonToCsv
throws error when given invalid JSON string.
Converting CSV to JSON Object
const fs = ;const convertCsvToHash = ; const csvContent = fs;const json = ;console;
convertCsvToHash
throws error when given invalid CSV string.
Converting CSV to JSON Array
const fs = ;const convertCsvToJSONList = ; const csvContent = fs;const json = ;console;
convertCsvToJSONList
throws error when given invalid CSV string.