UNPKG

harden-react-markdown

Version:

A security-focused wrapper for react-markdown that filters URLs based on allowed prefixes

61 lines 1.49 kB
{ "name": "harden-react-markdown", "version": "1.1.7", "description": "A security-focused wrapper for react-markdown that filters URLs based on allowed prefixes", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "keywords": [ "react", "markdown", "security", "url-filtering", "xss-protection", "react-markdown" ], "author": "Your Name", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/vercel/harden-react-markdown.git" }, "bugs": { "url": "https://github.com/vercel/harden-react-markdown/issues" }, "homepage": "https://github.com/vercel/harden-react-markdown#readme", "peerDependencies": { "react": ">=16.8.0", "react-markdown": ">=9.0.0" }, "dependencies": { "rehype-raw": "^7.0.0", "rehype-harden": "1.1.7" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.4", "@testing-library/react": "^16.3.0", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", "@vitejs/plugin-react": "^4.7.0", "jsdom": "^26.1.0", "react": "^19.1.0", "react-dom": "^19.1.0", "react-markdown": "^10.1.0", "typescript": "^5", "vite": "^7.0.6", "vitest": "^3.2.4" }, "publishConfig": { "access": "public" }, "scripts": { "check": "tsc --noEmit", "build": "tsc", "test": "vitest --run", "test:watch": "vitest --watch", "test:ui": "vitest --ui" } }