step-validator
Version:
A flexible validation library with customizable rules for strings and numbers
54 lines (53 loc) • 1.39 kB
JSON
{
"name": "step-validator",
"version": "2.1.3",
"description": "A flexible validation library with customizable rules for strings and numbers",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rimraf dist && tsc && tsc-alias",
"build:dev": "concurrently \"tsc -w\" \"tsc-alias -w\"",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"test:index": "cross-env NODE_OPTIONS=--experimental-vm-modules jest tests/validateStringWithList.test.ts"
},
"keywords": [
"step",
"validation",
"validator",
"validators",
"string",
"number",
"whitelist",
"blacklist",
"sanitization",
"protocol",
"host",
"port",
"query",
"hash"
],
"author": "Buqi Liao",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/BuqiLiao/step-validator.git"
},
"dependencies": {
"lodash-es": "^4.17.21",
"whatwg-url": "^14.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/lodash-es": "^4.17.12",
"@types/whatwg-url": "^11.0.5",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.4",
"tsc-alias": "^1.8.10",
"typedoc": "^0.26.6",
"typescript": "^5.5.4"
}
}