Skip to content

liruochen1998/export2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a lightweight npm package for exporting JS arrays to csv for web apps

Installation

npm install so-csv
then import the function utilities that you need.

Utilities

  • export2csv
import { export2csv } from "so-csv";
/* param1: 2d array
E.g.  param1 = [
    ["line1", 1, 2, 3],
    ["line2",4, 5, 6]
];
*/
export2csv(param1); // it will download the csv in browser.

TODO

  • TODO
  • exporting to a specific file name
  • taking other data type as input
  • being able to pass in rows and columns
  • cross-platform compatibility

About

npm package for exporting arrays to csv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published