# js_table_to_excel

> converting table to excel file

Latest version **1.0.6** (published 2019-06-10) · ISC license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2019-06-10 |
| First published | 2019-06-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | abishek |
| Maintainers | abisheksrv |

## Links

- npm: https://www.npmjs.com/package/js_table_to_excel
- npm.io page: https://npm.io/package/js_table_to_excel

## Recent versions

- 1.0.6 (latest) — 2019-06-10
- 1.0.5 — 2019-06-08
- 1.0.4 — 2019-06-08
- 1.0.3 — 2019-06-08
- 1.0.2 — 2019-06-08
- 1.0.1 — 2019-06-08
- 1.0.0 — 2019-06-06

## README

create excel by Javascript or React for table

##Install
  ```npm install js_table_to_excel```

##Basic usage on React
  ```
  import React, { Component } from "react"
  import { tableToExcel } from "js_table_to_excel"

  class excelTable extends Component {
    render() {
      return (
        <div>
          <table id="example">
            <thead>
              <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
              <tr>
            </thead>
            <tbody>
              <tr>
                <td>Tiger Nixon</td>
                <td>System Architect</td>
                <td>Edinburgh</td>
              </tr>
              <tr>
                <td>Garrett Winters</td>
                <td>Accountant</td>
                <td>Tokyo</td>
              </tr>
              <tr>
                <td>Ashton Cox</td>
                <td>Junior Technical Author</td>
                <td>San Francisco</td>
              </tr>
            </tbody>
          </table>
          <button onClick={() => tableToExcel("example","abishek")}>Export</button> // pass parameters as id, filename(optional)
        </div>
      )
    }
  }

  export default excelTable
```

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