npm-json2csv

This module can be used to convert your JSON into CSV file effeciently.Just pass your JSON array and filepath with filename. It will extract the headers and rows by itself and could handle values with commas also.

Browse on unpkg