UNPKG

universal-dompurify

Version:

💎 Use DOMPurify for some context by conditional exports

64 lines (63 loc) • 1.77 kB
{ "name": "universal-dompurify", "description": "💎 Use DOMPurify for some context by conditional exports", "type": "module", "version": "1.0.25", "license": "MIT", "author": { "name": "jill64", "email": "contact@jill64.dev", "url": "https://github.com/jill64", "image": "https://avatars.githubusercontent.com/u/143883742?v=4" }, "bugs": "https://github.com/jill64/universal-dompurify/issues", "homepage": "https://github.com/jill64/universal-dompurify#readme", "files": [ "dist" ], "exports": { "./browser-only": { "types": "./dist/browser-only/index.d.ts", "worker": "./dist/browser-only/skelton.js", "browser": "./dist/browser-only/index.js", "default": "./dist/browser-only/skelton.js" }, ".": { "types": "./dist/index.d.ts", "worker": "./dist/node.js", "browser": "./dist/index.js", "default": "./dist/node.js" } }, "repository": { "type": "git", "url": "git+https://github.com/jill64/universal-dompurify.git", "image": "https://opengraph.githubassets.com/56954c66a11ff59655a8e7e4bfba16967480e14a6a779f7384c67eaeac21d99a/jill64/universal-dompurify" }, "keywords": [ "dompurify", "html", "isomorphic", "sanitize", "universal", "xss" ], "prettier": "@jill64/prettier-config", "scripts": { "build": "tsc && npx publint", "prepack": "npm run build", "lint": "npx eslint . && npx depcheck", "format": "npx prettier -w ." }, "devDependencies": { "@jill64/eslint-config-ts": "2.0.25", "@jill64/prettier-config": "1.0.0", "@types/jsdom": "21.1.7", "typescript": "5.8.3" }, "dependencies": { "@types/dompurify": "3.2.0", "dompurify": "3.2.4", "jsdom": "26.1.0" } }