
<h1 align="center" style="text-align:center">Vue Zo - Roles & Permissions</h1>

<p align="center">
  <a href="https://www.npmjs.com/package/vue-zo"><img src="https://img.shields.io/npm/v/vue-zo.svg" alt="Version"></a>
  <a href="https://vuejs.org/"><img src="https://badgen.net/badge/Vue/2.x/cyan" alt="Vue"></a>
  <a href="https://vuejs.org/"><img src="https://badgen.net/badge/Vue/3.x/cyan" alt="Vue"></a>
  <a href="https://www.npmjs.com/package/vue-zo"><img src="https://img.shields.io/npm/dm/vue-zo.svg" alt="Downloads"></a>
  <a href="LICENSE"><img src="https://img.shields.io/npm/l/vue-zo.svg" alt="License"></a>
</p>

vue-zo is a plugin for [Vue.js](https://vuejs.org/) & [Nuxt.js](https://nuxtjs.org/) that allows you to use roles and permissions in your components (setup macro & option API), also compatible as middleware, methods, composition-api and [pinia.js](https://pinia.vuejs.org/).

## Installation

```cmd
npm install vue-zo --save-dev
```
## Features

- Persistent roles/permissions
- Super role avoids all role and permission validations
- Directives
- Middlewares
- Methods
- Wildcard support
- Support server-side rendering (Nuxt.js)
- TypeScript support

## documentation
[Docs](https://github.com/thonymg/vue-zo/tree/master/docs)

## 🙈 Credits

- Based on [Vue-gates](https://github.com/williamcruzme/vue-gates).

## 🔒 License

MIT
