Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yunisdev/table2csv
Lightweight library to convert HTML table to CSV file
https://github.com/yunisdev/table2csv
convert csv html javascript js table
Last synced: about 1 month ago
JSON representation
Lightweight library to convert HTML table to CSV file
- Host: GitHub
- URL: https://github.com/yunisdev/table2csv
- Owner: yunisdev
- Created: 2020-09-24T14:13:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T15:20:03.000Z (over 4 years ago)
- Last Synced: 2024-03-26T02:22:30.623Z (11 months ago)
- Topics: convert, csv, html, javascript, js, table
- Homepage: https://yunisdev.github.io/table2csv/
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
Add following HTML before body end:
```html```
or you can install using npm:
```bash
npm i yunisdev-table2csv
```## Usage
You can use this library using following syntax:
```html
Download
```
- ```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.