# vue-excel-json

> Vue plugin to read/write excel files and process them in vuex state.

Latest version **0.0.2** (published 2021-07-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-excel-json
pnpm add vue-excel-json
yarn add vue-excel-json
bun add vue-excel-json
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-07-15 |
| First published | 2021-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 996.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Bhaskar Nair |
| Maintainers | bhaskar-nair2 |
| Keywords | vue, vuex, excel reader, bulk upload, excel to json |

## Links

- npm: https://www.npmjs.com/package/vue-excel-json
- npm.io page: https://npm.io/package/vue-excel-json

## Dependencies (4)

- [xlsx](https://npm.io/package/xlsx.md) ^0.17.0
- [async](https://npm.io/package/async.md) ^3.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [nanoid](https://npm.io/package/nanoid.md) ^3.1.23

## 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

- 0.0.2 (latest) — 2021-07-15
- 0.0.1 — 2021-07-15

## README

# Vue Excel Upload

Vue plugin to read/write excel files and process them in vuex state.

The idea is to create an excel reader with the following capabilities

- Function to Reading Excel File by Column
- Function to parse data into a specified Object Format (Also allow to inject custmo functions to enhance formatting)
- Fuction to run over specific items.

```js
mounted() {
    excel.init(this.$store)
  },
```

```js
const sampleMapping = {
  'A': {
    title: 'Name',
    formatter: () => { },
    validator: () => { },
  },
  'B': {
    title: 'Name',
    formatter: (value) => value,
    validator: () => { },
  },
};
```

## Issues with reactivity

If you are planning to display the parsed list as a table using computed properties, you may face issues if the store is not registered before calling the computed property. To avoid that, you can simply register store in your component beforehand.

```js
created() {
    VueExcel.registerStore(this.$store)
},
```

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