UNPKG

isomorphic-dompurify

Version:

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

83 lines 1.93 kB
{ "name": "isomorphic-dompurify", "version": "3.8.0", "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.3", "jsdom": "^29.0.2" }, "devDependencies": { "@biomejs/biome": "^2.4.10", "@types/jsdom": "^28.0.1", "@types/trusted-types": "^2.0.7", "lefthook": "^2.1.5", "rimraf": "^6.1.3", "tsup": "^8.5.1", "typescript": "^6.0.2", "vitest": "^4.1.3" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24.0.0" }, "scripts": { "build": "rimraf dist && tsup", "format": "biome format --write", "lint": "biome check", "lint:fix": "biome check --fix", "typecheck": "tsc --noEmit", "test": "NODE_OPTIONS='--expose-gc' vitest run" } }