UNPKG

dompurify

Version:

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

67 lines (66 loc) 2.41 kB
{ "scripts": { "build-demo": "node scripts/build-demo.js", "qunit": "node scripts/server.js", "jshint": "node node_modules/jshint/bin/jshint src/purify.js || true", "minify": "scripts/minify.sh", "amend-minified": "scripts/amend-minified.sh", "test": "npm run jshint && npm run-script travis-ci", "travis-ci": "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && ./node_modules/.bin/karma start test/karma.conf.js --log-level warn --reporters dots --single-run || false", "ci-test": "./node_modules/.bin/karma start test/karma.conf.js --single-run", "local-test": "npm run jshint;./node_modules/.bin/karma start test/karma.conf.js --browsers Firefox,Chrome --single-run" }, "pre-commit": [ "jshint", "minify", "amend-minified" ], "devDependencies": { "jshint": "^2.4.4", "json-loader": "^0.5.2", "karma": "^0.13.15", "karma-browserstack-launcher": "git://github.com/shirish87/karma-browserstack-launcher.git#global_poll_0.1.6", "karma-chrome-launcher": "^0.2.1", "karma-firefox-launcher": "^0.1.6", "karma-fixture": "^0.2.5", "karma-html2js-preprocessor": "^0.1.0", "karma-json-fixtures-preprocessor": "0.0.5", "karma-qunit": "^0.1.8", "karma-webpack": "^1.7.0", "pre-commit": "^1.1.2", "qunit-parameterize": "^0.4.0", "qunitjs": "^1.20.0", "uglify-js": "^2.5.0", "webpack": "^1.12.1" }, "name": "dompurify", "description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.", "version": "0.7.3", "main": "src/purify.js", "directories": { "test": "test" }, "repository": { "type": "git", "url": "git://github.com/cure53/DOMPurify.git" }, "keywords": [ "dom", "xss", "html", "svg", "mathml", "security", "secure", "sanitizer", "sanitize", "filter", "purify" ], "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)", "license": "MPL-2.0 OR Apache-2.0", "bugs": { "url": "https://github.com/cure53/DOMPurify/issues" }, "homepage": "https://github.com/cure53/DOMPurify" }