UNPKG

unauthorized

Version:

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

56 lines (55 loc) 1.17 kB
{ "name": "unauthorized", "version": "0.1.0", "description": "Middleware to return 401 (Unauthorized) on the specified HTTP method.", "main": "./lib/index.js", "directories": { "test": "test" }, "scripts": { "lint": "standard", "compile": "babel src -d lib", "prepublish": "npm test", "pretest": "npm run lint && npm run compile", "test": "mocha --compilers js:babel-core/register -R spec ./test" }, "devDependencies": { "babel-cli": "^6.4.0", "babel-core": "^6.4.0", "babel-preset-es2015": "^6.3.0", "mocha": "^2.3.0", "standard": "^6.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/Zertz/unauthorized.git" }, "keywords": [ "connect", "express", "middleware", "401", "http", "status" ], "author": "Pier-Luc Gendreau", "license": "MIT", "bugs": { "url": "https://github.com/Zertz/unauthorized/issues" }, "homepage": "https://github.com/Zertz/unauthorized#readme", "files": [ "LICENSE", "README.md", "lib/" ], "standard": { "ignore": [ "lib" ], "globals": [ "describe", "it" ] } }