UNPKG

isomorphic-dompurify

Version:

Makes it possible to use DOMPurify on server and client in the same way.

76 lines 1.71 kB
{ "name": "isomorphic-dompurify", "version": "3.0.0-rc.2", "description": "Makes it possible to use DOMPurify on server and client in the same way.", "keywords": [ "security", "dompurify", "xss-filter", "xss", "isomorphic", "wrapper", "universal", "ssr", "html-escape", "sanitize", "sanitize-html", "sanitizer" ], "bugs": { "url": "https://github.com/kkomelin/isomorphic-dompurify/issues" }, "files": [ "dist" ], "license": "MIT", "repository": "kkomelin/isomorphic-dompurify", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "browser": { "./dist/index.js": "./dist/browser.js", "./dist/index.mjs": "./dist/browser.mjs" }, "exports": { ".": { "node": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "default": { "import": { "types": "./dist/browser.d.mts", "default": "./dist/browser.mjs" }, "require": { "types": "./dist/browser.d.ts", "default": "./dist/browser.js" } } } }, "dependencies": { "dompurify": "^3.3.1", "jsdom": "^28.0.0" }, "devDependencies": { "@types/jsdom": "^27.0.0", "@types/trusted-types": "^2.0.7", "tsup": "^8.5.1", "typescript": "^5.9.3", "vitest": "^4.0.16" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "scripts": { "build": "tsup", "test": "NODE_OPTIONS='--expose-gc' vitest run" } }