UNPKG

harden-react-markdown

Version:

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

56 lines (55 loc) 1.54 kB
{ "name": "harden-react-markdown", "version": "1.0.2", "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" ], "scripts": { "build": "tsc", "test": "vitest", "test:watch": "vitest --watch", "test:ui": "vitest --ui", "prepublishOnly": "npm run build && npm test" }, "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" }, "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" }, "packageManager": "pnpm@8.15.7+sha512.c85cd21b6da10332156b1ca2aa79c0a61ee7ad2eb0453b88ab299289e9e8ca93e6091232b25c07cbf61f6df77128d9c849e5c9ac6e44854dbd211c49f3a67adc" }