Skip to main content
Go to Latest
File
{ "name": "validator", "description": "String validation and sanitization", "version": "13.6.0", "sideEffects": false, "homepage": "https://github.com/validatorjs/validator.js", "files": [ "index.js", "es", "lib", "README.md", "LICENCE", "validator.js", "validator.min.js" ], "keywords": [ "validator", "validation", "validate", "sanitization", "sanitize", "sanitisation", "sanitise", "assert" ], "author": "Chris O'Hara <cohara87@gmail.com>", "contributors": [ "Anthony Nandaa (https://github.com/profnandaa)" ], "main": "index.js", "bugs": { "url": "https://github.com/validatorjs/validator.js/issues" }, "repository": { "type": "git", "url": "git+https://github.com/validatorjs/validator.js.git" }, "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/register": "^7.0.0", "babel-eslint": "^10.0.1", "babel-plugin-add-module-exports": "^1.0.0", "eslint": "^4.19.1", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.11.0", "mocha": "^6.2.3", "nyc": "^14.1.0", "rimraf": "^3.0.0", "rollup": "^0.43.0", "rollup-plugin-babel": "^4.0.1", "uglify-js": "^3.0.19" }, "scripts": { "lint": "eslint src test", "lint:fix": "eslint --fix src test", "clean:node": "rimraf index.js lib", "clean:es": "rimraf es", "clean:browser": "rimraf validator*.js", "clean": "npm run clean:node && npm run clean:browser && npm run clean:es", "minify": "uglifyjs validator.js -o validator.min.js --compress --mangle --comments /Copyright/", "build:browser": "node --require @babel/register build-browser && npm run minify", "build:es": "babel src -d es --env-name=es", "build:node": "babel src -d .", "build": "npm run build:browser && npm run build:node && npm run build:es", "pretest": "npm run build && npm run lint", "test": "nyc mocha --require @babel/register --reporter dot", "test:ci": "nyc report --reporter=text-lcov" }, "engines": { "node": ">= 0.10" }, "license": "MIT"}