1.0.2 • Published 7 years ago

array2csv v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

array2CSV

It is a javascript util to convert array to csv files at front end fully

Get Started

install using npm:

npm install array2csv --save

Examples

    var Array2CSV = require('array2scv')
    var columns = [{dataIndex:'name', title:'customer name'}, {dataIndex:'age'}]
    var data = [{name:'Bruce Lee', age:36}, {name:'Michael Jardon', age:45}]
    var option = {filename:'customers.csv'}
    Array2CSV.array2csv(columns, data, option)

The output looks like

npm.io

more information about the parameters, please check at the test unit

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago