# array2csv

> It is a javascript util to provide converting array to csv files at front end fully

Latest version **1.0.2** (published 2017-04-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install array2csv
pnpm add array2csv
yarn add array2csv
bun add array2csv
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-04-23 |
| First published | 2017-04-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xiii |
| Maintainers | xiii |
| Keywords | javascript, array2csv, front-end |

## Links

- npm: https://www.npmjs.com/package/array2csv
- Repository: https://github.com/xiiiAtCn/array2CSV
- Homepage: https://github.com/xiiiAtCn/array2CSV#readme
- Issues: https://github.com/xiiiAtCn/array2CSV/issues
- npm.io page: https://npm.io/package/array2csv

## Dependencies (1)

- [file-saver](https://npm.io/package/file-saver.md) ^1.3.3

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-04-23
- 1.0.1 — 2017-04-23
- 1.0.0 — 2017-04-23

## README

### 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 

![](img/customers.PNG)

more information about the parameters, please check at the test unit

---
_Source: https://npm.io/package/array2csv · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
