# vue-jwt-decode

> Tiny JWT decoder for Vue.js

Latest version **0.1.0** (published 2018-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-jwt-decode
pnpm add vue-jwt-decode
yarn add vue-jwt-decode
bun add vue-jwt-decode
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-01-16 |
| First published | 2018-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Oskar Laska |
| Maintainers | oskar1233 |

## Links

- npm: https://www.npmjs.com/package/vue-jwt-decode
- npm.io page: https://npm.io/package/vue-jwt-decode

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.3.3

## Recent versions

- 0.1.0 (latest) — 2018-01-16
- 0.0.2 — 2018-01-15
- 0.0.1 — 2018-01-15

## README

# vue-jwt-decode

> Tiny JWT decoder for Vue.js

## Installation

```
npm install vue-jwt-decode
```

## Usage

```
import VueJwtDecode from 'vue-jwt-decode'

// like this
VueJwtDecode.decode("<your jwt>")

// or like this
Vue.use(VueJwtDecode)
Vue.jwtDec("<your jwt>")

// or in component
this.$jwtDec("<your jwt>")
```

### Error handling

The lib is so tiny it doesn't have any error handling. You'll need to `try` - `catch` by yourself.

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