UNPKG

nodejs-schema-rules

Version:

The CLI tool automatically generates basic validation rules for popular libraries such as JOI, ValidatorJS and @vinejs/vine based on your database table schema!

61 lines (60 loc) 1.67 kB
{ "name": "nodejs-schema-rules", "version": "v1.0.5-alpha", "description": "The CLI tool automatically generates basic validation rules for popular libraries such as JOI, ValidatorJS and @vinejs/vine based on your database table schema!", "bin": { "ndVr": "dist/cli.js" }, "main": "dist/cli.js", "scripts": { "format": "prettier --write 'src/**/*.{js,ts}'", "clean": "rimraf dist/", "copy-files": "copyfiles -u 1 src/**/*.template dist/", "start": "node dist/cli.js", "dev": "yarn build && node dist/cli.js", "build": "yarn clean && tsc && yarn copy-files", "test": "jest" }, "jest": { "preset": "ts-jest", "testEnvironment": "node" }, "keywords": [ "node", "validatorjs", "schema", "nodejs-validation", "dynamic-schema", "dynamic-rules", "dynamic-validation-rules", "joi validation rules", "validatorjs validation rules", "vineJs validation rules", "vinejs@vine validation rules", "mysql schema rules", "postgres schema rules" ], "author": "Md Tasmidur Rahman <tasmidurrahman@gmail.com> (https://tasmidur.netlify.app)", "repository": { "type": "git", "url": "https://github.com/tasmidur/nodejs-validation-schema-rules.git" }, "license": "MIT", "dependencies": { "commander": "^11.1.0", "mysql2": "^3.7.0", "pg": "^8.7.1", "sqlite3": "^5.1.7" }, "devDependencies": { "@types/jest": "^29.5.11", "@types/node": "^16.11.6", "@types/pg": "^8.10.9", "copyfiles": "^2.4.1", "dotenv": "^16.3.1", "jest": "^29.7.0", "ts-jest": "^29.1.2", "ts-node": "^10.4.0", "typescript": "^4.5.5" } }