# @visactor/vtable-export

> The export util of VTable

Latest version **1.26.8** (published 2026-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @visactor/vtable-export
pnpm add @visactor/vtable-export
yarn add @visactor/vtable-export
bun add @visactor/vtable-export
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.26.8 |
| Published | 2026-09-11 |
| First published | 2023-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3681 |
| Author | VisActor |
| Maintainers | liufangfang, visactorowner, xuanhun, zamhown, chensiji.0517, youngwinds, purpose233, ssfxz, lixuefei.1313, ray_sun, xiaoluohe, simaq, xile611, da730, zhouxinyu66888, zexian_chen |

## Links

- npm: https://www.npmjs.com/package/@visactor/vtable-export
- Repository: https://github.com/VisActor/VTable
- Homepage: https://github.com/VisActor/VTable#readme
- Issues: https://github.com/VisActor/VTable/issues
- npm.io page: https://npm.io/package/@visactor/vtable-export

## Dependencies (5)

- [exceljs](https://npm.io/package/exceljs.md) 4.4.0
- [file-saver](https://npm.io/package/file-saver.md) 2.0.5
- [@visactor/vtable](https://npm.io/package/@visactor/vtable.md) 1.26.8
- [@visactor/vutils](https://npm.io/package/@visactor/vutils.md) ~1.0.17
- [@types/file-saver](https://npm.io/package/@types/file-saver.md) 2.0.7

## Recent versions

- 1.26.8 (latest) — 2026-09-11
- 1.26.4-alpha.0 (alpha) — 2026-06-30
- 1.18.12 (beta) — 2026-04-17
- 1.26.7 — 2026-08-20
- 1.26.6 — 2026-08-03
- 1.26.5 — 2026-07-15
- 1.26.4 — 2026-07-06
- 1.26.3 — 2026-06-25
- 1.26.3-alpha.0 — 2026-06-23
- 1.26.2 — 2026-06-16
- 1.26.2-none — 2026-06-16
- 1.27.0-alpha.3 — 2026-05-19
- 1.27.0-alpha.2 — 2026-05-18
- 1.22.13-alpha.11 — 2026-05-15
- 1.26.2-alpha.1 — 2026-05-14
- … 625 more at https://npm.io/package/@visactor/vtable-export/versions

## README

<div align="center">
  <a href="" target="_blank">
    <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/500_200.svg"/>
  </a>
</div>

<div align="center">
  <h1>VTable-Export</h1>
</div>

<div align="center">

This package is no longer maintained, please use the `TableExportPlugin` plugin in `@visactor/vtable-plugins`

[![npm Version](https://img.shields.io/npm/v/@visactor/vtable.svg)](https://www.npmjs.com/package/@visactor/react-vtable)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vtable.svg)](https://www.npmjs.com/package/@visactor/react-vvtable)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vtable/blob/main/LICENSE)

</div>

# Usage

## Installation

[npm package](https://www.npmjs.com/package/@visactor/vtable-export)

```bash
// npm
npm install @visactor/vtable-export

// yarn
yarn add @visactor/vtable-export
```

## Quick Start

```jsx
import * as VTable from '@visactor/vtable';
import { downloadCsv, exportVTableToCsv, downloadExcel, exportVTableToExcel } from '@visactor/vtable-export';

const option = {
  header: [
    {
      field: '0',
      caption: 'name'
    },
    {
      field: '1',
      caption: 'age'
    },
    {
      field: '2',
      caption: 'gender'
    },
    {
      field: '3',
      caption: 'hobby'
    }
  ],
  records: new Array(1000).fill(['John', 18, 'male', '🏀'])
};

const tableInstance = new VTable.ListTable(option);

// download csv file
await downloadCsv(exportVTableToCsv(tableInstance), 'export-csv');

// download excel file
await downloadExcel(await exportVTableToExcel(tableInstance), 'export-excel');
```

##

[More demos and detailed tutorials](https://visactor.io/vtable)

# Related Links

- [Official website](https://visactor.io/vtable)

# Ecosystem

| Project                                                  | Description                   |
| -------------------------------------------------------- | ----------------------------- |
| [AI-generated Components](https://visactor.io/ai-vtable) | AI-generated table component. |

# Contribution

If you would like to contribute, please read the [Code of Conduct ](./CODE_OF_CONDUCT.md) 和 [ Guide](./CONTRIBUTING.zh-CN.md) first。

Small streams converge to make great rivers and seas!

<a href="https://github.com/visactor/vtable/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vtable" /></a>

# License

[MIT License](./LICENSE)

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