unauthorized

0.1.0 • Public • Published

unauthorized Build Status NPM version

Middleware to return 401 (Unauthorized) on the specified HTTP method.

npm i unauthorized --save

Usage

const unauthorized = require('unauthorized')
const router = require('express').Router()
 
router.use('/path', unauthorized('delete'))
 
// DELETE /path 401 (Unauthorized)

Contributing

I'd love for you to contribute and make unauthorized even better than it is today!

Getting started

git clone https://github.com/Zertz/unauthorized.git
npm install
npm test

Guidelines

  • Standard style
  • Use ES2015 features when appropriate

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    4

Package Sidebar

Install

npm i unauthorized

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • zertz