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.

csv_4180

CSV according to RFC 4180. Everyone else's are weirdly wrong. Heavily tested; in typescript