# yunisdev-table2csv

> Lightweight library to convert HTML table to CSV file

Latest version **1.0.1** (published 2020-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install yunisdev-table2csv
pnpm add yunisdev-table2csv
yarn add yunisdev-table2csv
bun add yunisdev-table2csv
```

## 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.1 |
| Published | 2020-09-24 |
| First published | 2020-09-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Yunis Huseynzade |
| Maintainers | yunisdev |
| Keywords | table, to, csv, converter, table2csv |

## Links

- npm: https://www.npmjs.com/package/yunisdev-table2csv
- Repository: https://github.com/YunisDEV/table2csv
- Homepage: https://github.com/YunisDEV/table2csv#readme
- Issues: https://github.com/YunisDEV/table2csv/issues
- npm.io page: https://npm.io/package/yunisdev-table2csv

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-09-24
- 1.0.0 — 2020-09-24

## README

## Installation
Add following HTML before body end:
```html
<script src="https://yunisdev.github.io/table2csv/table2csv.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/yunisdev-table2csv"></script>
```
or you can install using npm:
```bash
npm i yunisdev-table2csv
```

## Usage
You can use this library using following syntax:
```html
<button class="table-btn" onclick="table2csv(this,1)" data-table="usersTable">Download</button>
```
- ```data-table``` is id of table to convert.
- ```table2csv``` is function that converts table in id of ```data-table``` to csv file and downloads. Accepts 2 parameters:
    - ```el```. Required. Accepts object of button.
    - ```endcut```. Optional. Accept an integer to cut from end of table.

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