Skip to content

Commit cc588ca

Browse files
committed
Add README badges
1 parent 7e5d672 commit cc588ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

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

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

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

0 commit comments

Comments
 (0)