Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pb-yuri-zaporozhets/resolvers
Creating different verification chains
https://github.com/pb-yuri-zaporozhets/resolvers
Last synced: 7 days ago
JSON representation
Creating different verification chains
- Host: GitHub
- URL: https://github.com/pb-yuri-zaporozhets/resolvers
- Owner: pb-yuri-zaporozhets
- Created: 2017-12-14T17:46:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T18:20:21.000Z (about 7 years ago)
- Last Synced: 2024-11-01T10:03:44.411Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> Creating different verification chains
# Quick start[![NPM](https://nodei.co/npm/resolvers.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/resolvers/)
## Install the package:```bash
npm install resolvers
// or
yarn add resolvers
```
## Create a base resolver:
```javascript
import resolvers from 'resolvers';let base = resolvers(param => {
console.log('base', param)
})let isAdmin = base.create(param => {
console.log('isAdmin', params)
})isAdmin('userId')
/* run
-> base, userId
-> isAdmin, userId
*/
```