Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
*/
```