UNPKG

react-shiki

Version:

Syntax highlighter component for react using shiki

99 lines 2.27 kB
{ "name": "react-shiki", "description": "Syntax highlighter component for react using shiki", "version": "0.9.1", "license": "MIT", "author": { "name": "Bassim Shahidy", "email": "bassim@shahidy.com", "url": "https://bassim.build" }, "repository": { "type": "git", "directory": "package", "url": "https://github.com/AVGVSTVS96/react-shiki" }, "homepage": "https://react-shiki.vercel.app/", "keywords": [ "react", "shiki", "code", "syntax", "highlighter", "syntax-highlighter", "react-syntax-highlighter" ], "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "src/lib/styles.css" ], "sideEffects": [ "src/lib/styles.css" ], "publishConfig": { "access": "public", "provenance": true }, "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./web": { "types": "./dist/web.d.ts", "default": "./dist/web.js" }, "./core": { "types": "./dist/core.d.ts", "default": "./dist/core.js" }, "./css": "./src/lib/styles.css" }, "peerDependencies": { "@types/react": ">=16.8.0", "@types/react-dom": ">=16.8.0", "react": ">= 16.8.0", "react-dom": ">= 16.8.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "@types/react-dom": { "optional": true } }, "dependencies": { "clsx": "^2.1.1", "dequal": "^2.0.3", "hast-util-to-jsx-runtime": "^2.3.6", "shiki": "^3.11.0", "unist-util-visit": "^5.0.0" }, "devDependencies": { "@testing-library/jest-dom": "^6.8.0", "@testing-library/react": "^16.3.0", "@types/hast": "^3.0.4", "@types/jest": "^29.5.14", "@types/node": "22.17.2", "@types/react": "^19.1.10", "@vitejs/plugin-react": "^4.7.0", "html-react-parser": "^5.2.6", "jsdom": "^26.1.0", "tsup": "^8.5.0", "vitest": "^3.2.4" }, "scripts": { "dev": "tsup --watch", "build": "tsup", "test": "vitest", "bench": "vitest bench", "lint": "biome lint .", "lint:fix": "biome lint --write .", "format": "biome format --write .", "check": "tsc && biome check ." } }