package.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "name": "sanitize-html",
  3. "version": "1.27.5",
  4. "description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis",
  5. "sideEffects": false,
  6. "main": "dist/sanitize-html.js",
  7. "files": [
  8. "dist/"
  9. ],
  10. "scripts": {
  11. "build": "mkdir -p dist && browserify src/index.js > dist/sanitize-html-es2015.js --standalone 'sanitizeHtml' && babel dist/sanitize-html-es2015.js --out-file dist/sanitize-html.js --presets=@babel/preset-env",
  12. "minify": "npm run build && uglifyjs dist/sanitize-html.js > dist/sanitize-html.min.js",
  13. "prepublishOnly": "npm run minify",
  14. "test": "npx eslint . && npm run prepublishOnly && mocha test/test.js"
  15. },
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/apostrophecms/sanitize-html.git"
  19. },
  20. "keywords": [
  21. "html",
  22. "parser",
  23. "sanitizer",
  24. "apostrophecms"
  25. ],
  26. "author": "Apostrophe Technologies, Inc.",
  27. "license": "MIT",
  28. "dependencies": {
  29. "htmlparser2": "^4.1.0",
  30. "lodash": "^4.17.15",
  31. "parse-srcset": "^1.0.2",
  32. "postcss": "^7.0.27"
  33. },
  34. "devDependencies": {
  35. "@babel/cli": "^7.8.4",
  36. "@babel/core": "^7.8.4",
  37. "@babel/preset-env": "^7.8.4",
  38. "babelify": "^10.0.0",
  39. "browserify": "^16.2.3",
  40. "eslint": "^4.0.0",
  41. "eslint-config-apostrophe": "3.3.0",
  42. "eslint-config-standard": "^11.0.0",
  43. "eslint-plugin-import": "^2.13.0",
  44. "eslint-plugin-node": "^6.0.1",
  45. "eslint-plugin-promise": "^3.8.0",
  46. "eslint-plugin-standard": "^3.1.0",
  47. "mocha": "^5.2.0",
  48. "sinon": "^9.0.2",
  49. "uglify-js": "^3.8.0"
  50. }
  51. }