From cc588ca664016c3d7c6f3ae1c62b7f5d26ad1fb5 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 8 Jun 2023 12:13:25 +0200 Subject: [PATCH] Add README badges --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 1308f5d..31a5625 100644 --- a/README.md +++ b/README.md @@ -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)