UNPKG

snap-validate

Version:

Lightweight validation library for common patterns without heavy dependencies

87 lines (86 loc) 1.99 kB
{ "name": "snap-validate", "version": "0.3.0", "description": "Lightweight validation library for common patterns without heavy dependencies", "main": "src/index.js", "types": "types/index.d.ts", "scripts": { "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint src tests", "lint:fix": "eslint src tests --fix", "format": "prettier --write \"src/**/*.js\" \"tests/**/*.js\"", "prepare": "husky install", "prepublishOnly": "npm test && npm run lint", "build": "echo 'No build step required for this library'", "example": "node examples/basic-usage.js" }, "keywords": [ "validation", "validator", "lightweight", "snap", "quick", "fast", "email", "phone", "credit-card", "url", "password", "forms", "input-validation", "schema-validation", "pattern-matching" ], "author": "Ramachandra Anirudh Vemulapalli", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/aniru-dh21/snap-validate.git" }, "bugs": { "url": "https://github.com/aniru-dh21/snap-validate/issues" }, "homepage": "https://github.com/aniru-dh21/snap-validate#readme", "devDependencies": { "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", "babel-jest": "^29.7.0", "eslint": "^8.57.1", "husky": "^9.1.0", "jest": "^29.7.0", "lint-staged": "^15.2.0", "prettier": "^3.2.0" }, "files": [ "src/", "types/", "README.md", "LICENSE" ], "engines": { "node": ">=12.0.0" }, "jest": { "testEnvironment": "node", "collectCoverageFrom": [ "src/**/*.js", "!src/**/*.test.js" ], "coverageThreshold": { "global": { "branches": 80, "functions": 80, "lines": 80, "statements": 80 } } }, "lint-staged": { "*.js": [ "eslint --fix", "prettier --write" ] } }