ore-fol-filters
Filters for ore-fol
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install ore-fol-filters 
SYNC missed versions from official npm registry.

ore-fol-filters

Build Status npm Version JS Standard

Filters for ore-fol

Installation

$ npm install ore-fol-filters --save

Usage

'use strict'

const { onlyAdminFilter } = require('ore-fol-filters')

function koaHandler (ctx) {
  ctx.onlyAdmin = onlyAdminFilter(ctx)
  /* ... */

  ctx.onlyAdmin(() => new Promise((resolve, reject) => {
    // DO something for admin
  }))
}



Functions

Available functions

Signature Description
onlyAdminFilter() Define only signed filter
onlySignedFilter() Define only signed filter

License

This software is released under the MIT License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (12)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |