Skip to content

Commit

Permalink
Add README badges
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Jun 8, 2023
1 parent 7e5d672 commit cc588ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

ACL-like authorization for [*fastify*](https://fastify.io) apps.

[![npm version](https://img.shields.io/npm/v/@yikesable/fastify-acl.svg?style=flat)](https://www.npmjs.com/package/@yikesable/fastify-acl)
[![npm downloads](https://img.shields.io/npm/dm/@yikesable/fastify-acl.svg?style=flat)](https://www.npmjs.com/package/@yikesable/fastify-acl)
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config)
[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)

With `@yikesable/fastify-acl` you can secure routes with roles, like **admin**, **superuser**, or **user:write**. Then you just tell the plugin how to determine which roles a user has, and you're set. You can also:

* Specify any/all functionality (allow if user has any of these roles, allow if users has all of these roles, for example)
Expand Down

0 comments on commit cc588ca

Please sign in to comment.