UNPKG

html-react-parser

Version:
113 lines (112 loc) 3.27 kB
{ "name": "html-react-parser", "version": "5.1.18", "description": "HTML to React parser.", "author": "Mark <mark@remarkablemark.org> (https://remarkablemark.org)", "main": "./lib/index.js", "module": "./esm/index.mjs", "exports": { ".": { "import": "./esm/index.mjs", "require": "./lib/index.js" }, "./lib/*": { "import": "./esm/*.mjs", "default": "./lib/*.js" } }, "scripts": { "benchmark": "ts-node benchmark", "build": "npm run build:cjs && npm run build:umd", "build:cjs": "tsc --project tsconfig.build.json", "build:umd": "rollup --config --failAfterWarnings", "clean": "rm -rf coverage lib dist", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "lint:tsc": "tsc --noEmit", "prepare": "husky", "prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run clean && npm run build", "size-limit": "size-limit", "test": "jest --testPathIgnorePatterns __tests__/integration", "test:ci": "CI=true npm test -- --ci --colors", "test:esm": "npm run build:cjs && node --test __tests__/esm", "test:integration": "npm run build && jest --coverage=false --env=jsdom __tests__/integration", "test:watch": "npm test -- --watch" }, "repository": { "type": "git", "url": "https://github.com/remarkablemark/html-react-parser" }, "bugs": { "url": "https://github.com/remarkablemark/html-react-parser/issues" }, "keywords": [ "html-react-parser", "html", "react", "parser", "dom" ], "dependencies": { "domhandler": "5.0.3", "html-dom-parser": "5.0.10", "react-property": "2.0.2", "style-to-js": "1.1.16" }, "devDependencies": { "@commitlint/cli": "19.5.0", "@commitlint/config-conventional": "19.5.0", "@eslint/compat": "1.2.0", "@eslint/eslintrc": "3.1.0", "@eslint/js": "9.12.0", "@rollup/plugin-commonjs": "28.0.0", "@rollup/plugin-node-resolve": "15.3.0", "@rollup/plugin-terser": "0.4.4", "@rollup/plugin-typescript": "11.1.6", "@size-limit/preset-big-lib": "11.1.6", "@types/benchmark": "2.1.5", "@types/jest": "29.5.13", "@types/node": "22.7.4", "@types/react": "18.3.11", "@types/react-dom": "18.3.0", "@typescript-eslint/eslint-plugin": "8.8.0", "@typescript-eslint/parser": "8.8.0", "benchmark": "2.1.4", "eslint": "9.12.0", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "15.10.0", "husky": "9.1.6", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-watch-typeahead": "2.2.2", "lint-staged": "15.2.10", "preact": "10.24.2", "react": "18.3.1", "react-dom": "18.3.1", "rollup": "4.24.0", "size-limit": "11.1.6", "ts-jest": "29.2.5", "typescript": "5.6.2" }, "peerDependencies": { "@types/react": "0.14 || 15 || 16 || 17 || 18", "react": "0.14 || 15 || 16 || 17 || 18" }, "peerDependenciesMeta": { "@types/react": { "optional": true } }, "files": [ "/dist", "/esm", "/lib", "/src" ], "collective": { "type": "opencollective", "url": "https://opencollective.com/html-react-parser" }, "license": "MIT" }