jsoncsvconverter v0.0.20
jsoncsvconverter
JsonCsvConverter is a tool for converting json to csv and vice-versa.This tool was designed to make it easy coverting json to csv and csv to json.
Installation
csvjsonconverter requires Node.js to run.
Install the dependencies and devDependencies and start the server.
$ npm install jsoncsvconverter@latest
How to use :
Converting json to csv :
var jsoncsvconverter = require('jsoncsvconverter');
jsoncsvconverter.j2c(object);
Works with both array of objects as well as single json object.
Converting csv to json :
var jsoncsvconverter = require('jsoncsvconverter');
jsoncsvconverter.c2j(object);
input : { "columns": "key1,key2,key3,key4", "rows": "value11,value21,value31,value41" }; Output : { "key1": "value11", "key2": "value21", "key3": "value31", "key4": "value41" }
OR Input : { "columns": "key1,key2,key3,key4", "rows": "value11,value21,value31,value41" }
Output : { "key1": "value11", "key2": "value21", "key3": "value31", "key4": "value41" }
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago