grant

v3.5.5
OAuth Middleware for Express, Koa and Hapi
oauth oauth2 authentication middleware express koa hapi

test

npm run lint-lib && npm run lint-test && npm run test-ci

test-ci

major=$(node --version | cut -b 2-2) && minor=$(node --version | cut -b 4-5) && if [ $major -eq 0 ] && [ $minor -ge 12 ]; then mocha --harmony --recursive test/; elif [ $major -ge 1 ]; then mocha --recursive test/; else mocha test/ test/flow/ test/consumer/express/ test/consumer/hapi/; fi

lint-lib

eslint lib/ && echo Lint lib passed

test-cov

istanbul cover _mocha test/ test/flow/ test/consumer/express/ test/consumer/hapi/

lint-test

eslint test/ && echo Lint test passed

Metadata

  • MIT
  • Whatever
  • Simeon Velichkov
  • released 1/17/2016

Downloads

Maintainers