package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "validator",
  3. "description": "String validation and sanitization",
  4. "version": "9.4.1",
  5. "homepage": "http://github.com/chriso/validator.js",
  6. "files": [
  7. "index.js",
  8. "lib",
  9. "README.md",
  10. "LICENCE",
  11. "validator.js",
  12. "validator.min.js"
  13. ],
  14. "keywords": [
  15. "validator",
  16. "validation",
  17. "validate",
  18. "sanitization",
  19. "sanitize",
  20. "sanitisation",
  21. "sanitise",
  22. "assert"
  23. ],
  24. "author": "Chris O'Hara <cohara87@gmail.com>",
  25. "main": "index.js",
  26. "bugs": {
  27. "url": "http://github.com/chriso/validator.js/issues"
  28. },
  29. "repository": {
  30. "type": "git",
  31. "url": "http://github.com/chriso/validator.js.git"
  32. },
  33. "devDependencies": {
  34. "babel-cli": "^6.24.0",
  35. "babel-plugin-add-module-exports": "^0.2.1",
  36. "babel-preset-es2015": "^6.24.0",
  37. "babel-preset-es2015-rollup": "^3.0.0",
  38. "eslint": "^4.0.0",
  39. "eslint-config-airbnb-base": "^11.2.0",
  40. "eslint-plugin-import": "^2.3.0",
  41. "mocha": "^3.1.2",
  42. "rollup": "^0.43.0",
  43. "rollup-plugin-babel": "^2.7.1",
  44. "uglify-js": "^3.0.19"
  45. },
  46. "scripts": {
  47. "lint": "eslint src test",
  48. "lint:fix": "eslint --fix src test",
  49. "clean:node": "rm -rf index.js lib",
  50. "clean:browser": "rm -rf validator*.js",
  51. "clean": "npm run clean:node && npm run clean:browser",
  52. "minify": "uglifyjs validator.js -o validator.min.js --compress --mangle --comments /Copyright/",
  53. "build:browser": "babel-node build-browser && npm run minify",
  54. "build:node": "babel src -d . --presets es2015 --plugins add-module-exports",
  55. "build": "npm run build:browser && npm run build:node",
  56. "pretest": "npm run lint && npm run build",
  57. "test": "mocha --reporter spec"
  58. },
  59. "engines": {
  60. "node": ">= 0.10"
  61. },
  62. "license": "MIT"
  63. }