Convert JSON format file to CSV format.
$ git clone https://github.com/tsalvia/json2csv.git
$ npm install
$ node json2csv.js -i <json_file>
-i, --input string This option is required.
Specifies the JSON file you want to convert to CSV format.
-o, --output string Specifies the file name for the output. The default is "input file name".csv
-h, --help Display specific types of command line options.
-
Specifying input files only.
$ node json2csv.js --input Sample.json
-
Specifying output destination.
$ node json2csv.js --input Sample.json --output output/Sample.csv