{ "name": "isomorphic-dompurify", "version": "4.9.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" ], "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", "prepublishOnly": "pnpm build" }, "homepage": "https://github.com/kkomelin/isomorphic-dompurify", "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.5.0", "jsdom": "^31.0.1" }, "devDependencies": { "@biomejs/biome": "^2.6.8", "@types/jsdom": "^30.0.0", "@types/trusted-types": "^2.0.7", "lefthook": "2.2.3", "rimraf": "^6.1.4", "tsup": "^9.0.0", "typescript": "^6.0.3", "vitest": "^5.1.1" }, "packageManager": "pnpm@12.23.0", "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" } }