koa-req-validation
Version:
A request validation middleware for Koa.
66 lines (65 loc) • 2.04 kB
JSON
{
"name": "koa-req-validation",
"version": "0.17.0",
"description": "A request validation middleware for Koa.",
"keywords": [
"nodejs",
"javascript",
"typescript",
"koa2",
"validation"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepublishOnly": "npm run lint && npm run typecheck && npm test && npm run build && npm run docs",
"test": "jest",
"test:watch": "jest --watchAll",
"typecheck": "tsc -p . --noEmit",
"lint": "eslint src/**/*.ts tests/**/*.ts --fix",
"demo": "ts-node ./demo/index.ts",
"build": "tsc -p .",
"docs": "typedoc --out docs/ src/ && touch docs/.nojekyll"
},
"author": "Perttu Kärnä <perttu.karna@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/ppeerttu/koa-req-validation.git"
},
"homepage": "https://ppeerttu.github.io/koa-req-validation/",
"license": "ISC",
"devDependencies": {
"@koa/router": "^10.1.1",
"@types/jest": "^27.4.1",
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
"@types/koa-bodyparser": "^4.3.7",
"@types/validator": "^13.7.2",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^26.6.3",
"koa": "^2.13.4",
"koa-bodyparser": "^4.3.0",
"prettier": "^2.6.2",
"ts-jest": "^26.5.6",
"ts-node": "^10.7.0",
"typedoc": "^0.22.15",
"typescript": "^4.6.4",
"validator": "13.7.0"
},
"peerDependencies": {
"@koa/router": ">=10.1.x",
"koa-bodyparser": ">=4.3.x",
"validator": ">=13.7.x"
},
"jest": {
"preset": "ts-jest",
"collectCoverageFrom": [
"src/*.ts",
"src/**/*.ts"
]
}
}