node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

array-to-csv

array-to-csv

NPM version Build status Test coverage Dependency Status License Downloads

Convert a 2D array to CSV.

const toCSV = require('array-to-csv')
 
toCSV([
  ['header 1', 'header 2'],
  ['value 1', 'value 2']
])