react-safe-html-parser
Version:
A secure, lightweight HTML parser for React with XSS protection and SSR support
90 lines (89 loc) • 2.44 kB
JSON
{
"name": "react-safe-html-parser",
"version": "1.0.3",
"type": "module",
"description": "A secure, lightweight HTML parser for React with XSS protection and SSR support",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md"
],
"sideEffects": false,
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write src/**/*.{ts,tsx}",
"type-check": "tsc --noEmit",
"prepublishOnly": "npm run build"
},
"keywords": [
"react",
"html",
"parser",
"xss",
"security",
"ssr",
"vercel",
"nextjs",
"typescript"
],
"author": "Syed Muhammad Kaif Bukhari",
"license": "MIT",
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/jest": "^29.0.0",
"@types/node": "^20.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"jest": "^29.0.0",
"jest-environment-jsdom": "^29.0.0",
"jsdom": "^22.0.0",
"prettier": "^3.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@testing-library/react": "^14.0.0",
"rollup": "^4.0.0",
"rollup-plugin-dts": "^6.0.0",
"@rollup/plugin-terser": "^0.4.0",
"tslib": "^2.6.0",
"typescript": "^5.0.0"
},
"dependencies": {
"linkedom": "^0.15.0"
},
"repository": {
"type": "git",
"url": "https://github.com/react-safe-html-parser/react-safe-html-parser.git"
},
"bugs": {
"url": "https://github.com/react-safe-html-parser/react-safe-html-parser/issues"
},
"homepage": "https://github.com/react-safe-html-parser/react-safe-html-parser#readme"
}