Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ladjs/policies
Policies helper for Lad
https://github.com/ladjs/policies
api basic-auth group koa lad mongodb mongoose passport permissioning policies unix
Last synced: 6 days ago
JSON representation
Policies helper for Lad
- Host: GitHub
- URL: https://github.com/ladjs/policies
- Owner: ladjs
- License: mit
- Created: 2017-09-09T19:28:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T20:37:22.000Z (11 months ago)
- Last Synced: 2024-10-04T14:17:50.531Z (about 1 month ago)
- Topics: api, basic-auth, group, koa, lad, mongodb, mongoose, passport, permissioning, policies, unix
- Language: JavaScript
- Homepage: https://lad.js.org
- Size: 527 KB
- Stars: 2
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [**@ladjs/policies**](https://github.com/ladjs/policies)
[![build status](https://github.com/ladjs/policies/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/policies/actions/workflows/ci.yml)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/policies.svg)]()> Policies helper for Lad
## Table of Contents
* [Install](#install)
* [Usage](#usage)
* [Options](#options)
* [Contributors](#contributors)
* [License](#license)## Install
[npm][]:
```sh
npm install @ladjs/policies
```## Usage
```js
const Policies = require('@ladjs/policies');const appName = 'My App Name';
const policies = new Policies({ appName }, api_token => Users.findOne({ api_token }));
```## Options
See [index.js](index.js) for options and defaults.
## Contributors
| Name | Website |
| ------------------ | --------------------------------- |
| **Nick Baugh** | |
| **Spencer Snyder** | |
| **Pablo Varela** | |
| **Shaun Warman** | |
| **shadowgate15** | |## License
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com)
##
[npm]: https://www.npmjs.com/