# @iamproperty/vue-errors

> Use Laravel validation errors in Vue.

Latest version **1.0.1** (published 2019-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @iamproperty/vue-errors
pnpm add @iamproperty/vue-errors
yarn add @iamproperty/vue-errors
bun add @iamproperty/vue-errors
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-02 |
| First published | 2019-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Fenwick |
| Maintainers | jamesfenwick, maharrington, nathan.connor, ross.cooney |
| Keywords | Vue, Vuex, Laravel |

## Links

- npm: https://www.npmjs.com/package/@iamproperty/vue-errors
- Homepage: https://github.com/iamproperty/vue-errors
- Issues: https://github.com/iamproperty/vue-errors/issues
- npm.io page: https://npm.io/package/@iamproperty/vue-errors

## Recent versions

- 1.0.1 (latest) — 2019-10-02
- 1.0.0 — 2019-09-25

## README

# Vue Errors

Use Laravel validation error messages in Vue.

## Usage

Install the package using yarn or npm.

```sh
yarn add @iamproperty/vue-errors
``` 

When setting up your Vuex store add the module as a top level module 

```js
import Vuex from 'vuex';
import { errors } from '@iamproperty/vue-errors';

export default new Vuex.Store({
  modules: {
    errors,
  }
})
```

and register the plugin.

```js
import Vue from 'vue';
import Errors from '@iamproperty/vue-errors';

Vue.use(Errors);
```

If you register the store module to a different name you can use the `installer` 
function to register the plugin to the custom location.

```js

import Vue from 'vue';
import { installer } from '@iamproperty/vue-errors';

Vue.use(installer('custom/namespace'));
```

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