UNPKG

auto-form-validator

Version:

A smart, zero-setup form validation library for React with automatic rule detection, i18n support, async validation, and UI integration helpers.

79 lines (78 loc) 2.02 kB
{ "name": "auto-form-validator", "version": "1.0.2", "private": false, "description": "A smart, zero-setup form validation library for React with automatic rule detection, i18n support, async validation, and UI integration helpers.", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/index.mjs", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.js", "types": "./dist/index.d.ts" }, "./asyncValidators": { "import": "./dist/asyncValidators.mjs", "require": "./dist/asyncValidators.js", "types": "./dist/asyncValidators.d.ts" } }, "files": [ "dist", "README.md" ], "scripts": { "build": "tsup src/index.ts src/utils/asyncValidators.ts --format esm,cjs --dts", "clean": "rimraf dist", "lint": "eslint src --ext .ts,.tsx", "test": "jest", "prepare": "npm run clean && npm run build" }, "keywords": [ "form-validation", "react", "async-validation", "i18n", "auto-validator" ], "tags": [ "form", "validation", "react", "i18n", "async", "hooks", "library", "auto-validator" ], "repository": { "type": "git", "url": "https://github.com/MehekFatima/auto-form-validator.git" }, "author": "Mehek Fatima", "license": "MIT", "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/jest": "^30.0.0", "@types/node": "^24.0.7", "@types/react": "^19.1.8", "all-contributors-cli": "^6.26.1", "eslint": "^9.30.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-react": "^7.37.5", "jest": "^30.0.3", "jest-environment-jsdom": "^30.0.2", "prettier": "^3.6.2", "react-test-renderer": "^19.1.0", "rimraf": "^6.0.1", "ts-jest": "^29.4.0", "tsup": "^8.5.0", "typescript": "^5.8.3" } }