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: about 2 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T17:30:33.000Z (4 months ago)
- Last Synced: 2025-04-05T02:01:54.351Z (2 months ago)
- Topics: api, basic-auth, group, koa, lad, mongodb, mongoose, passport, permissioning, policies, unix
- Language: JavaScript
- Homepage: https://lad.js.org
- Size: 535 KB
- Stars: 2
- Watchers: 5
- 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)
[](https://github.com/ladjs/policies/actions/workflows/ci.yml)
[](https://github.com/sindresorhus/xo)
[](https://github.com/prettier/prettier)
[](https://lass.js.org)
[]()> 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/