Download your JSON data as an Excel (.xls / .xlsx) or CSV file, directly from the browser. Wrap any button, pick the fields, done.
npm i vue-json-excel3| A | B | C | D | |
|---|---|---|---|---|
| 1 | Complete name | City | Country | Telephone |
| 2 | Tony Peña | New York | United States | 1-541-754-3010 |
| 3 | Thessaloniki | Athens | Greece | +1 855 275 5071 |
| 4 | Ada Lovelace | London | United Kingdom | +44 20 7946 0958 |
| 5 | Grace Hopper | Arlington | United States | 1-703-555-0142 |
| 6 | Alan Turing | Manchester | United Kingdom | +44 161 496 0754 |
Features
One wrapper component around any button — it turns your JSON into a spreadsheet the moment the user clicks.
Quick start
1. Install
npm install vue-json-excel3pnpm add vue-json-excel3yarn add vue-json-excel3bun add vue-json-excel3Then read the Getting Started guide or browse the live Examples.
2. Use it
<script setup>
import JsonExcel from 'vue-json-excel3'
const data = [
{ name: 'Tony Peña', city: 'New York' },
{ name: 'Thessaloniki', city: 'Athens' },
]
</script>
<template>
<JsonExcel :data="data" type="xlsx" name="people.xlsx">
Download Excel
</JsonExcel>
</template>