UNPKG

@th3hero/request-validator

Version:

🚀 Lightweight, fast & flexible request validation library for Node.js/Express/Next.js with TypeScript support. Features 20+ validation rules, database integration, file upload validation, and zero external dependencies. Perfect for API validation, form v

106 lines (105 loc) • 2.68 kB
{ "name": "@th3hero/request-validator", "version": "1.1.9", "description": "🚀 Lightweight, fast & flexible request validation library for Node.js/Express/Next.js with TypeScript support. Features 20+ validation rules, database integration, file upload validation, and zero external dependencies. Perfect for API validation, form validation, and input sanitization.", "keywords": [ "validator", "request-validator", "express-validator", "validation", "input-validation", "form-validation", "api-validation", "typescript", "nodejs", "express", "nextjs", "fastify", "koa", "middleware", "sanitization", "data-validation", "schema-validation", "joi-alternative", "yup-alternative", "express-validation", "request-sanitization", "input-sanitization", "database-validation", "file-validation", "async-validation", "custom-validators", "validation-rules", "validation-middleware", "api-security", "input-security" ], "homepage": "https://github.com/th3hero/request-validator#readme", "bugs": { "url": "https://github.com/th3hero/request-validator/issues" }, "repository": { "type": "git", "url": "git+https://github.com/th3hero/request-validator.git" }, "license": "MIT", "author": { "name": "Alok Kumar", "email": "thealokkumarsingh@gmail.com", "url": "https://github.com/th3hero" }, "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "prebuild": "npm run clean", "build": "tsc", "prepare": "npm run build", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "tsc --noEmit", "clean": "rimraf dist coverage .idea", "prepublishOnly": "npm run test && npm run lint", "format": "prettier --write \"src/**/*.ts\"", "typecheck": "tsc --noEmit" }, "dependencies": { "express": "^4.18.2" }, "devDependencies": { "@types/express": "^4.17.17", "@types/jest": "^29.5.0", "@types/mysql": "^2.15.21", "@types/node": "^18.15.11", "jest": "^29.5.0", "prettier": "^3.0.0", "rimraf": "^4.4.1", "ts-jest": "^29.1.0", "typescript": "^5.0.4" }, "optionalDependencies": { "mysql": "^2.18.1" }, "engines": { "node": ">=14.0.0" }, "publishConfig": { "access": "public" }, "funding": { "type": "github", "url": "https://github.com/sponsors/th3hero" }, "maintainers": [ { "name": "Alok Kumar", "email": "thealokkumarsingh@gmail.com" } ] }