# @dockerlead/vue-excel-xlsx

> Export your data as *.xlsx file

Latest version **1.1.1** (published 2020-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dockerlead/vue-excel-xlsx
pnpm add @dockerlead/vue-excel-xlsx
yarn add @dockerlead/vue-excel-xlsx
bun add @dockerlead/vue-excel-xlsx
```

## 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.1.1 |
| Published | 2020-09-24 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Taron Chatoyan, Ihsan Oeddin, DockerLead |
| Maintainers | crazyoptimist |
| Keywords | vue, excel, xlsx, json, export, json excel, export excel, download excel, excel xlsx, export |

## Links

- npm: https://www.npmjs.com/package/@dockerlead/vue-excel-xlsx
- Repository: https://github.com/dockerlead/vue-excel-xlsx
- Homepage: https://github.com/dockerlead/vue-excel-xlsx#readme
- Issues: https://github.com/dockerlead/vue-excel-xlsx/issues
- npm.io page: https://npm.io/package/@dockerlead/vue-excel-xlsx

## Dependencies (1)

- [xlsx](https://npm.io/package/xlsx.md) ^0.14.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.1 (latest) — 2020-09-24
- 1.1.0 — 2020-09-18

## README

# vue-excel-xlsx

Convert your data into *.xlsx file

## Getting started

``` javascript
    npm install vue-excel-xlsx --save
```

#### Import vue-excel-xlsx in your app:

``` javascript
    import VueExcelXlsx from "vue-excel-xlsx";
    import Vue from "vue";

    Vue.use(VueExcelXlsx);
```

#### Add in your template
``` html
    <vue-excel-xlsx
        :data="data"
        :columns="columns"
        :filename="'filename'"
        :sheetname="'sheetname'"
        >
        Download
    </vue-excel-xlsx>
```

#### Add in your script
``` javascript
        data() {
            return {
                columns : [
                    {
                        label: "Product",
                        field: "product",
                    },
                    {
                        label: "Price",
                        field: "price",
                        dataFormat: this.priceFormat
                    },
                    {
                        label: "Quantity",
                        field: "quantity",
                    },
                ],
                data : [
                    {
                        product: "Beverage",
                        price: 10,
                        quantity: 2
                    },
                    {
                        product: "Snack",
                        price: 12,
                        quantity: 6
                    },
                    {
                        product: "Beverage",
                        price: 10,
                        quantity: 5
                    },
                    {
                        product: "Snack",
                        price: 12,
                        quantity: 3
                    }
                ],
            }
        },
        methods: {
            priceFormat(value){
                return '$ ' + value;
            }
        }
```

## Status

Forked from [t-chatoyan/vue-excel-xlsx](https://github.com/t-chatoyan/vue-excel-xlsx), but the repo didn't seem to be maintained, which is the reason this scoped and enhanced package is being published..

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