UNPKG

@enviabybus/express-validation

Version:

express-validation is a middleware that validates a request and returns a response with errors; if any of the configured validation rules fail.

81 lines (80 loc) 2.13 kB
{ "name": "@enviabybus/express-validation", "version": "3.0.8", "author": "Andrew Keig <andrew.keig@gmail.com>", "description": "express-validation is a middleware that validates a request and returns a response with errors; if any of the configured validation rules fail.", "main": "./lib/index", "types": "lib/index.d.ts", "homepage": "https://github.com/andrewkeig/express-validation", "repository": { "type": "git", "url": "https://github.com/andrewkeig/express-validation" }, "bugs": { "url": "https://github.com/andrewkeig/express-validation/issues" }, "scripts": { "test:watch": "jest --watch", "lint": "eslint 'lib/*.js'", "test": "jest", "test-single": "jest defaultValues.test.js", "benchmark": "node benchmarks/ev.js", "coverage": "jest --coverage --runInBand", "load-post": "load/post.sh", "load-get": "load/get.sh", "flame": "load/flame.sh", "bubble": "load/bubble.sh" }, "keywords": [ "express", "validation", "validate", "joi", "middleware" ], "dependencies": { "joi": "^17.2.1" }, "jest": { "collectCoverageFrom": [ "lib/**/*.{js,jsx}" ], "modulePathIgnorePatterns": [ "__mocks__", "load" ] }, "husky": { "hooks": { "pre-commit": "npm run lint", "pre-push": "npm run lint" } }, "devDependencies": { "benchmark": "^2.1.4", "body-parser": "^1.19.0", "cookie-parser": "^1.4.5", "cookie-signature": "^1.1.0", "eslint": "^6.8.0", "eslint-config-airbnb-base": "^14.1.0", "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.20.2", "eslint-plugin-jest": "^23.13.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "express": "^4.17.1", "husky": "^4.2.5", "jest": "^25.5.4", "lint-staged": "^10.2.4", "supertest": "4.0.2" }, "license": "MIT", "licenses": [ { "type": "MIT", "url": "https://github.com/andrewkeig/express-validation/raw/master/LICENSE" } ], "typings": "lib/index" }