UNPKG

react-jsx-parser

Version:

A React component which can parse JSX and output rendered React Components

69 lines (68 loc) 2.1 kB
{ "author": "Troy Alford", "bugs": "https://github.com/TroyAlford/react-jsx-parser/issues", "contributors": [ "See https://github.com/TroyAlford/react-jsx-parser/graphs/contributors" ], "dependencies": { "acorn": "^8.12.1", "acorn-jsx": "^5.3.2" }, "description": "A React component which can parse JSX and output rendered React Components", "devDependencies": { "@happy-dom/global-registrator": "^15.7.4", "@types/acorn": "^6.0.0", "@types/bun": "^1.1.12", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "basis": "github:TroyAlford/basis#v1.1.0", "concurrently": "^9.0.1", "cross-env": "^7.0.3", "eslint": "8.57.1", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "2.31.0", "eslint-plugin-jsx-a11y": "^6.9.0", "eslint-plugin-react": "7.37.2", "mkdirp": "^3.0.1", "react": "^18.3.1", "react-dom": "^18.3.1", "typescript": "^5.5.3" }, "engines": { "bun": "^1.1.27" }, "files": [ "dist/" ], "keywords": [ "react", "jsx" ], "license": "MIT", "main": "dist/react-jsx-parser.min.js", "name": "react-jsx-parser", "optionalDependencies": { "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1" }, "patchedDependencies": { "acorn-jsx@5.3.2": "patches/acorn-jsx@5.3.2.patch" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "repository": "TroyAlford/react-jsx-parser", "scripts": { "build": "bun build:types && bun build:code", "build:code": "bun build --target=browser --outfile=./dist/react-jsx-parser.min.js ./source/index.ts --external react --external react-dom", "build:types": "bun run tsc -p ./tsconfig.json -d --emitDeclarationOnly --preserveWatchOutput", "develop": "NODE_ENV=production concurrently -n build,ts,demo -c green,cyan,yellow \"bun build:code --watch\" \"bun build:types --watch\" \"bun serve\"", "lint": "bun eslint --ext .js,.ts,.tsx source/", "prebuild": "mkdirp ./dist && rm -rf ./dist/*", "serve": "bun ./demo/server.ts", "test": "bun lint && bun test" }, "types": "dist/index.d.ts", "version": "2.4.0" }